diff --git a/src/intel/compiler/brw/brw_nir.c b/src/intel/compiler/brw/brw_nir.c index a020ccfac6e..0cebda48c2c 100644 --- a/src/intel/compiler/brw/brw_nir.c +++ b/src/intel/compiler/brw/brw_nir.c @@ -2639,21 +2639,13 @@ brw_postprocess_nir_opts(nir_shader *nir, const struct brw_compiler *compiler, OPT(brw_nir_lower_fsign); OPT(brw_nir_opt_fsat); - do { - progress = false; - - OPT(nir_opt_algebraic_late); - - if (progress) { - OPT(nir_opt_copy_prop); - OPT(nir_opt_dce); - OPT(nir_opt_cse); - } - } while (progress); - + while (OPT(nir_opt_algebraic_late)) { + OPT(nir_opt_copy_prop); + OPT(nir_opt_dce); + OPT(nir_opt_cse); + } OPT(nir_lower_fp16_casts, nir_lower_fp16_split_fp64); - OPT(nir_lower_alu_to_scalar, NULL, NULL); while (OPT(nir_opt_algebraic_distribute_src_mods)) {