Mesa (master): intel/nir, freedreno/ir3: Use the separated dead write vars pass

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 16 00:35:04 UTC 2018


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

Author: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Date:   Wed Aug 29 17:26:03 2018 -0700

intel/nir, freedreno/ir3: Use the separated dead write vars pass

No changes to shader-db for intel.
No changes to shader-db expected for freedreno.

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/gallium/drivers/freedreno/ir3/ir3_nir.c | 1 +
 src/intel/compiler/brw_nir.c                | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/gallium/drivers/freedreno/ir3/ir3_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_nir.c
index db1d74fdee..d5f42f2a23 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_nir.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_nir.c
@@ -94,6 +94,7 @@ ir3_optimize_loop(nir_shader *s)
 
 		OPT_V(s, nir_lower_vars_to_ssa);
 		progress |= OPT(s, nir_opt_copy_prop_vars);
+		progress |= OPT(s, nir_opt_dead_write_vars);
 		progress |= OPT(s, nir_lower_alu_to_scalar);
 		progress |= OPT(s, nir_lower_phis_to_scalar);
 
diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c
index f61baee230..297845b89b 100644
--- a/src/intel/compiler/brw_nir.c
+++ b/src/intel/compiler/brw_nir.c
@@ -553,6 +553,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler,
          OPT(nir_opt_find_array_copies);
       }
       OPT(nir_opt_copy_prop_vars);
+      OPT(nir_opt_dead_write_vars);
 
       if (is_scalar) {
          OPT(nir_lower_alu_to_scalar);




More information about the mesa-commit mailing list