From: Alyssa Rosenzweig Date: Fri, 19 Jul 2019 16:11:56 +0000 (-0700) Subject: pan/midgard: Ignore inline_constant in liveness X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16c8c354d0c9452011bd41e160ba9c42afa5387c;p=mesa.git pan/midgard: Ignore inline_constant in liveness It doesn't make any sense to look at it. Signed-off-by: Alyssa Rosenzweig --- 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;