glsl/cse: Maintain a list of free ae_entry objects
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 26 Mar 2015 00:23:40 +0000 (17:23 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 6 Apr 2015 18:53:59 +0000 (11:53 -0700)
commitdd7d0687848fb6c310debef4a6ff61b2159d2a4d
tree4652f28f70fc9241245a9eb691a10ba26b224991
parentd131630c0825f199768965c504b6fa1e593d03d5
glsl/cse: Maintain a list of free ae_entry objects

The CSE algorithm will continuously allocate new ae_entry objects.  As
each new basic block is exited, all of the previously allocated objects
are dumped.  Instead, put them in a free list and re-use them in the
next basic block.  Reduce, reuse, recycle!

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
src/glsl/opt_cse.cpp