Module: Mesa
Branch: master
Commit: 2cb9cc56d53c20109c1deccd4e12cf2ee015aafb
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2cb9cc56d53c20109c1deccd4e12cf2ee015aafb

Author: Jason Ekstrand <[email protected]>
Date:   Fri Mar 27 11:05:27 2020 -0500

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>

---

 src/intel/compiler/brw_nir.c | 2 ++
 1 file changed, 2 insertions(+)

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);
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to