From 152057b138d58370f6b90406b07b2604439fabb7 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 19 Mar 2018 18:00:14 -0700 Subject: i965: Move nir_lower_deref_instrs to right before locals_to_regs Reviewed-by: Caio Marcelo de Oliveira Filho Acked-by: Rob Clark Acked-by: Bas Nieuwenhuizen Acked-by: Dave Airlie Reviewed-by: Kenneth Graunke --- src/intel/compiler/brw_nir.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/intel/compiler') diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 227c94d83b9..971854add4d 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -766,6 +766,8 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, OPT(nir_opt_dce); OPT(nir_opt_move_comparisons); + OPT(nir_lower_deref_instrs, ~0); + OPT(nir_lower_locals_to_regs); if (unlikely(debug_enabled)) { -- cgit v1.2.3