From 16c8c354d0c9452011bd41e160ba9c42afa5387c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 19 Jul 2019 09:11:56 -0700 Subject: [PATCH] pan/midgard: Ignore inline_constant in liveness It doesn't make any sense to look at it. Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/midgard_ra.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2