diff options
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r-- | src/panfrost/midgard/midgard_opt_copy_prop.c | 2 | ||||
-rw-r--r-- | src/panfrost/midgard/midgard_opt_invert.c | 2 |
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 */ |