glsl: Use hash tables for opt_constant_propagation() kill sets.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Nov 2014 07:16:13 +0000 (23:16 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Sep 2015 07:01:24 +0000 (00:01 -0700)
commit4654439fdd766f79a78fe0d812fd916f5815e7e6
tree54bc99aca6f096eb7cde5884fc41b86f9bafe3bd
parente20f30eb5181cddf8286d2247cfaf7e0fac7e417
glsl: Use hash tables for opt_constant_propagation() kill sets.

Cuts compile/link time of the fragment shader in #91857 by 19%
(16.28 -> 13.05).

I didn't bother with the acp sets because they're smaller, but it
might be worth doing as well.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91857
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
Tested-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/opt_constant_propagation.cpp