aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2020-03-27 11:05:27 -0500
committerMarge Bot <[email protected]>2020-03-30 15:46:19 +0000
commit2cb9cc56d53c20109c1deccd4e12cf2ee015aafb (patch)
tree82387a66e6ac499ce7ea8680b10d04557ff39821
parent5278e9dea7e6b91fb6a915b775da5e14dcbca811 (diff)
intel/nir: Run copy-prop and DCE after lower_bool_to_int32
No shader-db impact on ICL with iris. Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4338>
-rw-r--r--src/intel/compiler/brw_nir.c2
1 files changed, 2 insertions, 0 deletions
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);