OSDN Git Service

glsl: use hash instead of exec_list in copy propagation
authorTapani Pälli <tapani.palli@intel.com>
Tue, 6 Sep 2016 07:17:57 +0000 (10:17 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Fri, 9 Sep 2016 04:50:42 +0000 (07:50 +0300)
commit2cd02e30d2e1677762d34f1831b8e609970ef0f3
treefeee2ec4658902c6a7eb46848c7b3b19095a29c7
parent175ac629be1396fb8566836e32961a22fc5cca21
glsl: use hash instead of exec_list in copy propagation

This change makes copy propagation pass faster. Complete link time
spent in test case attached to bug 94477 goes down to ~400 secs from
over 500 secs on my HSW machine. Does not fix the actual issue but
brings down the total. No regressions seen in CI.

v2: do not leak hash_table structure

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/opt_copy_propagation.cpp