From c742a99fb6cf96ffa9c8c5fffc7d6a9057c5671d Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 25 Mar 2019 20:31:34 +1100 Subject: [PATCH] intel/compiler: call nir_opt_dead_cf() after we have finished all opts This will avoid a regression with the following patch. Reviewed-by: Kenneth Graunke Reviewed-by: Ian Romanick Part-of: --- src/intel/compiler/brw_nir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index d27af2c0ec2..37da6965ba3 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -1192,6 +1192,7 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, OPT(nir_copy_prop); OPT(nir_opt_dce); OPT(nir_opt_move, nir_move_comparisons); + OPT(nir_opt_dead_cf); OPT(nir_lower_bool_to_int32); OPT(nir_copy_prop);