From cc06e1ebe2ceb711aed050d1194b8df577e2e3a4 Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Wed, 28 Jan 2026 13:07:09 -0800 Subject: [PATCH] brw: Remove outdated comment about remove_dead_variables This now also removes dead variables created by split_array_vars, and in the future it is reasonable other optimizations inside the optimization loop to make temp variables dead. Reviewed-by: Sagar Ghuge Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/brw/brw_nir.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/intel/compiler/brw/brw_nir.c b/src/intel/compiler/brw/brw_nir.c index 9c1c02bc4ce..1d8cf02d114 100644 --- a/src/intel/compiler/brw/brw_nir.c +++ b/src/intel/compiler/brw/brw_nir.c @@ -1506,9 +1506,6 @@ brw_nir_optimize(brw_pass_tracker *pt) LOOP_OPT(nir_lower_pack); } while (pt->progress); - /* Workaround Gfxbench unused local sampler variable which will trigger an - * assert in the opt_large_constants pass. - */ OPT(nir_remove_dead_variables, nir_var_function_temp, NULL); }