From: Boris Brezillon Date: Mon, 6 Jan 2020 13:31:38 +0000 (+0100) Subject: panfrost: Remove unneeded phi nodes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=440b0d6eec273728bd31d454bd1a874c2ecb9eb7;p=mesa.git panfrost: Remove unneeded phi nodes Add a pass to remove unneeded phi nodes as done in other drivers. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Tested-by: Marge Bot Part-of: --- diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 2dd58b714f8..56a1138197a 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -487,6 +487,7 @@ optimise_nir(nir_shader *nir, unsigned quirks) NIR_PASS(progress, nir, nir_lower_vars_to_ssa); NIR_PASS(progress, nir, nir_copy_prop); + NIR_PASS(progress, nir, nir_opt_remove_phis); NIR_PASS(progress, nir, nir_opt_dce); NIR_PASS(progress, nir, nir_opt_dead_cf); NIR_PASS(progress, nir, nir_opt_cse);