From 73fa431bff61ee5896a792b8e672b4c758e5fbff Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 17 Nov 2025 14:31:15 -0500 Subject: [PATCH] brw: unloop post-mem vectorize opts There's enough looping happening elsewhere for it to not really matter. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Caio Oliveira Part-of: --- src/intel/compiler/brw/brw_nir.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/intel/compiler/brw/brw_nir.c b/src/intel/compiler/brw/brw_nir.c index 571cbb657e1..b8bedec2f1f 100644 --- a/src/intel/compiler/brw/brw_nir.c +++ b/src/intel/compiler/brw/brw_nir.c @@ -2258,7 +2258,7 @@ brw_vectorize_lower_mem_access(nir_shader *nir, const struct brw_compiler *compiler, enum brw_robustness_flags robust_flags) { - bool progress = false; + UNUSED bool progress = false; nir_load_store_vectorize_options options = { .modes = nir_var_mem_ubo | nir_var_mem_ssbo | @@ -2322,16 +2322,10 @@ brw_vectorize_lower_mem_access(nir_shader *nir, }; OPT(nir_lower_mem_access_bit_sizes, &mem_access_options); OPT(nir_lower_pack); - - while (progress) { - progress = false; - - OPT(nir_opt_copy_prop); - OPT(nir_opt_dce); - OPT(nir_opt_cse); - OPT(nir_opt_algebraic); - OPT(nir_opt_constant_folding); - } + OPT(nir_opt_copy_prop); + OPT(nir_opt_dce); + OPT(nir_opt_algebraic); + OPT(nir_opt_cse); /* Do this after the vectorization & brw_nir_rebase_const_offset_ubo_loads * so that we maximize the offset put into the messages.