aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-07-19 09:11:56 -0700
committerAlyssa Rosenzweig <[email protected]>2019-07-22 08:20:34 -0700
commit16c8c354d0c9452011bd41e160ba9c42afa5387c (patch)
tree102b84f1c7c8dc6f6f20d1937610d03cac712998 /src/panfrost/midgard
parentd155168e6cdbfc0e86cad6d22fda1111408340e4 (diff)
pan/midgard: Ignore inline_constant in liveness
It doesn't make any sense to look at it. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_ra.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c
index cb895794845..dcae8183513 100644
--- a/src/panfrost/midgard/midgard_ra.c
+++ b/src/panfrost/midgard/midgard_ra.c
@@ -338,6 +338,9 @@ allocate_registers(compiler_context *ctx, bool *spilled)
for (int src = 0; src < 2; ++src) {
int s = sources[src];
+ if (ins->ssa_args.inline_constant && src == 1)
+ continue;
+
if (s < 0) continue;
if (s >= SSA_FIXED_MINIMUM) continue;