summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-07-30 20:53:04 -0700
committerJason Ekstrand <[email protected]>2015-08-10 11:58:58 -0700
commitbdcc8f32304b67cd9c87f5f285c1faa00c51d3ad (patch)
treea115a881571875d41792fa1ea92a03d5372df331 /src/util
parent7539ac7fe2077f7634250dcb34497e1ac643b0df (diff)
ra: Delete the conflict lists in ra_set_finalize
They are never used after the set is finalized so there's no reason to keep them around. Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/register_allocate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c
index 129d58d2292..436e008b01a 100644
--- a/src/util/register_allocate.c
+++ b/src/util/register_allocate.c
@@ -348,6 +348,11 @@ ra_set_finalize(struct ra_regs *regs, unsigned int **q_values)
}
}
}
+
+ for (b = 0; b < regs->count; b++) {
+ ralloc_free(regs->regs[b].conflict_list);
+ regs->regs[b].conflict_list = NULL;
+ }
}
static void