v3d: Fix temporary leaks of temp_registers and when spilling.
authorEric Anholt <eric@anholt.net>
Tue, 26 Feb 2019 18:46:36 +0000 (10:46 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 5 Mar 2019 20:57:39 +0000 (12:57 -0800)
commit060979a380be0a6149e3e875ee24fdb1e7872821
tree394b2ba2cc99ab7429d36ad084a4265b6ea88387
parentfaf9e40f35ff14045265556acb1f9a2c4ab33c98
v3d: Fix temporary leaks of temp_registers and when spilling.

On each iteration of successfully spilling a reg, we'd allocate another
copy of temp_registers, and when decrementing thread conut we'd allocate
another copy of the graph.  These all got cleaned up on freeing the
compile.
src/broadcom/compiler/vir_register_allocate.c