glsl: separate copy propagation state
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 23 Jun 2018 00:35:23 +0000 (17:35 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 19 Jul 2018 17:00:30 +0000 (10:00 -0700)
commit7b0d39525005fbe48179328a3ed255a08c886519
treee39af9275ae5199777f604d2090a2c7a2088ce04
parent49e86f09fe2292d537d10662b79632006d89e653
glsl: separate copy propagation state

Separate higher level logic of visiting instructions and chosing when
to store and use new copy data from the datastructure holding the copy
propagation information. This will also make easier later patches that
change the structure.

v2: Remove empty destructor and clarify how hash tables are destroyed.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/opt_copy_propagation_elements.cpp