From: Alyssa Rosenzweig Date: Mon, 27 Apr 2020 21:19:24 +0000 (-0400) Subject: pan/mdg: SSA_FIXED_MINIMUM already covered by PAN_IS_REG X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23337fd5907e834eab05f5486af8458cc446376d;p=mesa.git pan/mdg: SSA_FIXED_MINIMUM already covered by PAN_IS_REG Signed-off-by: Alyssa Rosenzweig Part-of: --- 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 */