From: Jason Ekstrand Date: Fri, 27 Mar 2020 16:05:27 +0000 (-0500) Subject: intel/nir: Run copy-prop and DCE after lower_bool_to_int32 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cb9cc56d53c20109c1deccd4e12cf2ee015aafb;p=mesa.git intel/nir: Run copy-prop and DCE after lower_bool_to_int32 No shader-db impact on ICL with iris. Reviewed-by: Kenneth Graunke Part-of: --- diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 9e8ae3b52a1..25395747c13 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -927,6 +927,8 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, OPT(nir_opt_move, nir_move_comparisons); OPT(nir_lower_bool_to_int32); + OPT(nir_copy_prop); + OPT(nir_opt_dce); OPT(nir_lower_locals_to_regs);