Mesa (master): ra: Delete the conflict lists in ra_set_finalize

Jason Ekstrand jekstrand at kemper.freedesktop.org
Mon Aug 10 19:06:42 UTC 2015


Module: Mesa
Branch: master
Commit: bdcc8f32304b67cd9c87f5f285c1faa00c51d3ad
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdcc8f32304b67cd9c87f5f285c1faa00c51d3ad

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Jul 30 20:53:04 2015 -0700

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 at gmail.com>

---

 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




More information about the mesa-commit mailing list