brw: Remove extra iteration on instructions from brw_opt_address_reg_load

The helper function already iterate instructions.

Fixes: 8ac7802ac8 ("brw: move final send lowering up into the IR")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36478>
This commit is contained in:
Caio Oliveira 2025-07-30 15:37:05 -07:00 committed by Marge Bot
parent 56f88cd360
commit f222b16f92

View file

@ -59,9 +59,7 @@ brw_opt_address_reg_load(brw_shader &s)
const brw_def_analysis &defs = s.def_analysis.require();
foreach_block(block, s.cfg) {
foreach_inst_in_block_safe(brw_inst, inst, block) {
progress = opt_address_reg_load_local(s, block, defs) || progress;
}
progress = opt_address_reg_load_local(s, block, defs) || progress;
}
if (progress) {