[Mesa-dev] [PATCH 7/9] intel/nir: Use the new dead write vars pass

Caio Marcelo de Oliveira Filho caio.oliveira at intel.com
Wed Aug 15 21:56:38 UTC 2018


---
 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 31ffbe613ec..afc73e58c71 100644
--- a/src/intel/compiler/brw_nir.c
+++ b/src/intel/compiler/brw_nir.c
@@ -543,6 +543,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler,
       progress = false;
       OPT(nir_lower_vars_to_ssa);
       OPT(nir_opt_copy_prop_vars);
+      OPT(nir_opt_dead_write_vars);
 
       if (is_scalar) {
          OPT(nir_lower_alu_to_scalar);
-- 
2.18.0



More information about the mesa-dev mailing list