[Mesa-dev] [PATCH 3/3] intel/nir: Call nir_opt_deref in brw_nir_optimize
Jason Ekstrand
jason at jlekstrand.net
Fri Jan 11 21:05:35 UTC 2019
It's an optimization so we should probably be calling it in the
optimization loop.
---
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 749c00ebcc6..92d7fe4bede 100644
--- a/src/intel/compiler/brw_nir.c
+++ b/src/intel/compiler/brw_nir.c
@@ -544,6 +544,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler,
progress = false;
OPT(nir_split_array_vars, nir_var_function);
OPT(nir_shrink_vec_array_vars, nir_var_function);
+ OPT(nir_opt_deref);
OPT(nir_lower_vars_to_ssa);
if (allow_copies) {
/* Only run this pass in the first call to brw_nir_optimize. Later
--
2.20.1
More information about the mesa-dev
mailing list