From 822a8865e4645ed7e1818568d1d0338b462c7748 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Fri, 8 Mar 2019 10:08:20 -0800 Subject: nir: Add a pass to combine store_derefs to same vector v2: (all from Jason) Reuse existing function for the end of the block combinations. Check the SSA values are coming from the right place in tests. Document the case when the store to array_deref is reused. Reviewed-by: Jason Ekstrand --- src/intel/compiler/brw_nir.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/intel/compiler/brw_nir.c') diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index ba90a8392dc..23005b00374 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -555,6 +555,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler, } OPT(nir_opt_copy_prop_vars); OPT(nir_opt_dead_write_vars); + OPT(nir_opt_combine_stores, nir_var_all); if (is_scalar) { OPT(nir_lower_alu_to_scalar); -- cgit v1.2.3