freedreno/ir3: add missing nir_opt_copy_prop_vars() pass
authorRob Clark <robdclark@gmail.com>
Mon, 22 May 2017 18:18:19 +0000 (14:18 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 23 May 2017 16:26:35 +0000 (12:26 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_nir.c

index 9fb41fcce0c4ef5b5845116730d588542dbf4cf1..d30543d760f1e4c27d824ee94d306254ffc91d9b 100644 (file)
@@ -109,6 +109,7 @@ ir3_optimize_loop(nir_shader *s)
                progress = false;
 
                OPT_V(s, nir_lower_vars_to_ssa);
+               progress |= OPT(s, nir_opt_copy_prop_vars);
                progress |= OPT(s, nir_lower_alu_to_scalar);
                progress |= OPT(s, nir_lower_phis_to_scalar);