[Mesa-dev] [PATCH 2/5] ra: Delete the conflict lists in ra_set_finalize

Jason Ekstrand jason at jlekstrand.net
Fri Jul 31 10:05:27 PDT 2015


They are never used after the set is finalized so there's no reason to keep
them around.
---
 src/util/register_allocate.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c
index 129d58d..436e008 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
-- 
2.4.3



More information about the mesa-dev mailing list