[Mesa-dev] [PATCH 0/4] Don't abuse the hash table that much
Thomas Helland
thomashelland90 at gmail.com
Thu Jan 12 19:23:43 UTC 2017
We have quite a few places where we are doing hashing multiple times.
These are some cases I found, but there are likely more.
Thomas Helland (4):
glsl: Hash only once if inserting new elemnt in refcount hash table
nir: Prehash in instr_set to avoid unnecessary hashing
util: Implement a hash table cloning function
glsl: Use hash table cloning in copy propagation
src/compiler/glsl/ir_variable_refcount.cpp | 7 ++++--
src/compiler/glsl/opt_copy_propagation.cpp | 17 ++++---------
.../glsl/opt_copy_propagation_elements.cpp | 29 ++++++++--------------
src/compiler/nir/nir_instr_set.c | 8 ++++--
src/util/hash_table.c | 22 ++++++++++++++++
src/util/hash_table.h | 2 ++
6 files changed, 50 insertions(+), 35 deletions(-)
--
2.11.0
More information about the mesa-dev
mailing list