From: Vasily Khoruzhick Date: Thu, 29 Aug 2019 06:09:38 +0000 (-0700) Subject: lima/ppir: don't lower phis to scalar X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa77fc309a87bc263ebacaa9c69cd623ba5c7e23;p=mesa.git lima/ppir: don't lower phis to scalar Utgard PP is vec4 architecture, so lowering phis to scalars increases instruction count and potentially interferes with spilling. Tested-by: Andreas Baierl Reviewed-by: Eric Anholt Signed-off-by: Vasily Khoruzhick --- diff --git a/src/gallium/drivers/lima/lima_program.c b/src/gallium/drivers/lima/lima_program.c index 4bfcd7e87dc..6a8b51db9a7 100644 --- a/src/gallium/drivers/lima/lima_program.c +++ b/src/gallium/drivers/lima/lima_program.c @@ -209,7 +209,6 @@ lima_program_optimize_fs_nir(struct nir_shader *s) NIR_PASS_V(s, nir_lower_vars_to_ssa); NIR_PASS(progress, s, nir_lower_alu_to_scalar, lima_alu_to_scalar_filter_cb, NULL); - NIR_PASS(progress, s, nir_lower_phis_to_scalar); NIR_PASS(progress, s, nir_copy_prop); NIR_PASS(progress, s, nir_opt_remove_phis); NIR_PASS(progress, s, nir_opt_dce);