From 09dfaf2c91994f7f134445c81dca8c273dde0982 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 1 Aug 2023 09:29:40 -0400 Subject: [PATCH] agx: Remove unused allocation Relic from early RA attempts. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_register_allocate.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/asahi/compiler/agx_register_allocate.c b/src/asahi/compiler/agx_register_allocate.c index 81ef7360377..ab41eb3f20d 100644 --- a/src/asahi/compiler/agx_register_allocate.c +++ b/src/asahi/compiler/agx_register_allocate.c @@ -1101,8 +1101,6 @@ agx_insert_parallel_copies(agx_context *ctx, agx_block *block) void agx_ra(agx_context *ctx) { - unsigned *alloc = calloc(ctx->alloc, sizeof(unsigned)); - agx_compute_liveness(ctx); uint8_t *ncomps = calloc(ctx->alloc, sizeof(uint8_t)); agx_instr **src_to_collect_phi = calloc(ctx->alloc, sizeof(agx_instr *)); @@ -1272,5 +1270,4 @@ agx_ra(agx_context *ctx) free(ncomps); free(sizes); free(visited); - free(alloc); }