mesa: Reduce the memory usage for reg alloc with many graph nodes (part 1)
authorEric Anholt <eric@anholt.net>
Wed, 20 Feb 2013 00:46:41 +0000 (16:46 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 11 Mar 2013 19:11:54 +0000 (12:11 -0700)
commit6aa3afbfd6b737350351e9ea22ba9de1accda52d
treeb54c3c7d1238cc734bb9623117a0b46c2b0e1f54
parent5daf867f6c8984e6e025d8a0b0a7dfa162068420
mesa: Reduce the memory usage for reg alloc with many graph nodes (part 1)

We were allocating an adjacency_list entry for every possible
interference that could get created, but that usually doesn't happen.
We can save a lot of memory by resizing the array on demand.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/register_allocate.c