diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-07-30 20:53:04 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-08-10 11:58:58 -0700 |
commit | bdcc8f32304b67cd9c87f5f285c1faa00c51d3ad (patch) | |
tree | a115a881571875d41792fa1ea92a03d5372df331 /src/util | |
parent | 7539ac7fe2077f7634250dcb34497e1ac643b0df (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 <mattst88@gmail.com>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/register_allocate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c index 129d58d22920..436e008b01a7 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 |