From 23337fd5907e834eab05f5486af8458cc446376d Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 27 Apr 2020 17:19:24 -0400 Subject: [PATCH] pan/mdg: SSA_FIXED_MINIMUM already covered by PAN_IS_REG Signed-off-by: Alyssa Rosenzweig Part-of: --- 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 */ -- 2.30.2