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>
(cherry picked from commit f222b16f92)
This commit is contained in:
Caio Oliveira 2025-07-30 15:37:05 -07:00 committed by Eric Engestrom
parent 2a7afb5024
commit 04352acc96
2 changed files with 2 additions and 4 deletions

View file

@ -3254,7 +3254,7 @@
"description": "brw: Remove extra iteration on instructions from brw_opt_address_reg_load",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "8ac7802ac835eb8e01e88a477586bae7dc547034",
"notes": null

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) {