diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c index 309378c5778..b1ff6e8f01b 100644 --- a/src/freedreno/ir3/ir3_nir.c +++ b/src/freedreno/ir3/ir3_nir.c @@ -338,6 +338,7 @@ ir3_optimize_loop(struct ir3_compiler *compiler, progress |= OPT(s, nir_opt_copy_prop_vars); progress |= OPT(s, nir_opt_dead_write_vars); progress |= OPT(s, nir_split_struct_vars, nir_var_function_temp); + progress |= OPT(s, nir_opt_shrink_stores, true); static int gcm = -1; if (gcm == -1)