nir/radv: remove restrictions on opt_if_loop_last_continue()
[mesa.git] / src / gallium / drivers / freedreno / a2xx / ir2_nir.c
index 6aaff393167c8098429c712a7899ad0fe50fc5dc..3d4145fccdcaf819e4e2565a089a3385cf259005 100644 (file)
@@ -94,7 +94,7 @@ ir2_optimize_loop(nir_shader *s)
                        OPT(s, nir_opt_dce);
                }
                progress |= OPT(s, nir_opt_loop_unroll, nir_var_all);
-               progress |= OPT(s, nir_opt_if);
+               progress |= OPT(s, nir_opt_if, false);
                progress |= OPT(s, nir_opt_remove_phis);
                progress |= OPT(s, nir_opt_undef);