pan/mdg: SSA_FIXED_MINIMUM already covered by PAN_IS_REG
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 27 Apr 2020 21:19:24 +0000 (17:19 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Apr 2020 15:18:38 +0000 (15:18 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4792>

src/panfrost/midgard/midgard_opt_copy_prop.c
src/panfrost/midgard/midgard_opt_invert.c

index 1eb368e800a9794938f25ab8016a35d24cc6d066..beec457b31aec88602ce921aaf38bb59845c6b3e 100644 (file)
@@ -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;
 
index 17c9de598b5826ed1710965d51bc15a0d34f2387..de7f6bc43d80bc84768dccbe0ecc9e2ccd5b97c9 100644 (file)
@@ -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 */