Mesa (master): panfrost: Remove unneeded phi nodes
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jan 13 14:44:09 UTC 2020
Module: Mesa
Branch: master
Commit: 440b0d6eec273728bd31d454bd1a874c2ecb9eb7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=440b0d6eec273728bd31d454bd1a874c2ecb9eb7
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date: Mon Jan 6 14:31:38 2020 +0100
panfrost: Remove unneeded phi nodes
Add a pass to remove unneeded phi nodes as done in other drivers.
Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3294>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3294>
---
src/panfrost/midgard/midgard_compile.c | 1 +
1 file changed, 1 insertion(+)
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);
More information about the mesa-commit
mailing list