Mesa (master): pan/mdg: SSA_FIXED_MINIMUM already covered by PAN_IS_REG

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 29 15:33:21 UTC 2020


Module: Mesa
Branch: master
Commit: 23337fd5907e834eab05f5486af8458cc446376d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=23337fd5907e834eab05f5486af8458cc446376d

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Mon Apr 27 17:19:24 2020 -0400

pan/mdg: SSA_FIXED_MINIMUM already covered by PAN_IS_REG

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4792>

---

 src/panfrost/midgard/midgard_opt_copy_prop.c | 2 --
 src/panfrost/midgard/midgard_opt_invert.c    | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/panfrost/midgard/midgard_opt_copy_prop.c b/src/panfrost/midgard/midgard_opt_copy_prop.c
index 1eb368e800a..beec457b31a 100644
--- a/src/panfrost/midgard/midgard_opt_copy_prop.c
+++ b/src/panfrost/midgard/midgard_opt_copy_prop.c
@@ -74,8 +74,6 @@ midgard_opt_copy_prop(compiler_context *ctx, midgard_block *block)
 
                 /* We only work on pure SSA */
 
-                if (to >= SSA_FIXED_MINIMUM) continue;
-                if (from >= SSA_FIXED_MINIMUM) continue;
                 if (to & PAN_IS_REG) continue;
                 if (from & PAN_IS_REG) continue;
 
diff --git a/src/panfrost/midgard/midgard_opt_invert.c b/src/panfrost/midgard/midgard_opt_invert.c
index 17c9de598b5..de7f6bc43d8 100644
--- a/src/panfrost/midgard/midgard_opt_invert.c
+++ b/src/panfrost/midgard/midgard_opt_invert.c
@@ -211,7 +211,7 @@ midgard_opt_fuse_dest_invert(compiler_context *ctx, midgard_block *block)
 static bool
 mir_strip_inverted(compiler_context *ctx, unsigned node)
 {
-        if (node >= SSA_FIXED_MINIMUM)
+        if (node == SSA_FIXED_REGISTER(26))
                 return false;
 
        /* Strips and returns the invert off a node */



More information about the mesa-commit mailing list