pan/midgard: Ignore inline_constant in liveness
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 19 Jul 2019 16:11:56 +0000 (09:11 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 22 Jul 2019 15:20:34 +0000 (08:20 -0700)
It doesn't make any sense to look at it.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_ra.c

index cb895794845fbfccb192f1b5fd907ebff496c2bb..dcae8183513df53aa54f37c6458c1863b679432e 100644 (file)
@@ -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;