From d553af7f8bedf645f0b85f0c2238cf6280a46cd1 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 22 Feb 2024 08:40:40 -0400 Subject: [PATCH] agx: drop scratch regs for spilling remnant of an old approach. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_register_allocate.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/asahi/compiler/agx_register_allocate.c b/src/asahi/compiler/agx_register_allocate.c index 6b571f46530..aad35517da6 100644 --- a/src/asahi/compiler/agx_register_allocate.c +++ b/src/asahi/compiler/agx_register_allocate.c @@ -1381,12 +1381,6 @@ agx_ra(agx_context *ctx) unsigned reg_file_alignment = MAX2(max_ncomps, 8); assert(util_is_power_of_two_nonzero(reg_file_alignment)); - if (spilling) { - /* We need to allocate scratch registers for lowering spilling later */ - effective_demand = MAX2(effective_demand, 6 * 2 /* preloading */); - effective_demand += reg_file_alignment; - } - unsigned demand = ALIGN_POT(effective_demand, reg_file_alignment); assert(demand <= max_possible_regs && "Invariant");