summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-27 17:19:24 -0400
committerMarge Bot <[email protected]>2020-04-29 15:18:38 +0000
commit23337fd5907e834eab05f5486af8458cc446376d (patch)
tree04f9e144134c30e1e713195a2a63670c88fbc7ff
parent63eec105b27b48ced9d68978881ccebcd18aeb8e (diff)
pan/mdg: SSA_FIXED_MINIMUM already covered by PAN_IS_REG
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4792>
-rw-r--r--src/panfrost/midgard/midgard_opt_copy_prop.c2
-rw-r--r--src/panfrost/midgard/midgard_opt_invert.c2
2 files changed, 1 insertions, 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 */