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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev