glsl: optimize copy_propagation_elements pass
authorTapani Pälli <tapani.palli@intel.com>
Fri, 30 Sep 2016 15:12:12 +0000 (08:12 -0700)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 10 Oct 2016 04:29:31 +0000 (07:29 +0300)
commitc64093e7d5da5d652017f57876036088c1ae1451
tree12e439b72c736f7938e2005f6d31456ce1e037d9
parentdb5d278541a1bec3e51c2f0cecd2d127abdfc59c
glsl: optimize copy_propagation_elements pass

Changes make copy_propagation_elements pass faster, reducing link
time spent in test case of bug 94477. Does not fix the actual issue
but brings down the total time. No regressions seen in CI.

v2 (idr): Formatting / whitespace fixes.  Embed the acp_ref in the
acp_entry.

v3 (idr): Delete unused copy constructor.  Use while(pop_head) instead
of foreach() { remove }.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/opt_copy_propagation_elements.cpp