glsl: slim the kill_entry struct used in const propagation
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 7 Jul 2018 00:21:34 +0000 (17:21 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 12 Jul 2018 21:03:51 +0000 (14:03 -0700)
commitd6e869afe90df1d6fa02b1dcb1a367c48fca001a
treef623850bb82c6492f8a16df31174267eec5b560c
parent094225d69d25239a36daebb0021235cce65afa59
glsl: slim the kill_entry struct used in const propagation

Since 4654439fdd7 "glsl: Use hash tables for
opt_constant_propagation() kill sets." uses a hash_table for storing
kill_entries, so the structs can be simplified.

Remove the exec_node from kill_entry since it is not used in an
exec_list anymore.

Remove the 'var' from kill_entry since it is now redundant with the
key of the hash table.

Suggested by Eric Anholt.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
src/compiler/glsl/opt_constant_propagation.cpp