[Mesa-dev] [PATCH 0/2] Hash table cloning for copy propagation

Thomas Helland thomashelland90 at gmail.com
Mon Mar 12 17:55:20 UTC 2018


This is a revival of some old patches I had around to improve
the compile times in the glsl compiler by reducing the time
spend inserting items in the hash table in opt_copy_propagation.
I've only rebased this, as my system don't even want to compile
anything right now. I also don't remember if it was thoroughly
tested, so that will have to be done. Sending it out as Dave
might be interested in this to mitigate some of the overhead
his soft-dobule implementation incurs.

CC: Dave Airlie <airlied at gmail.com>

Thomas Helland (2):
  util: Implement a hash table cloning function
  glsl: Use hash table cloning in copy propagation

 src/compiler/glsl/opt_copy_propagation.cpp         | 13 ++++------
 .../glsl/opt_copy_propagation_elements.cpp         | 29 ++++++++--------------
 src/util/hash_table.c                              | 22 ++++++++++++++++
 src/util/hash_table.h                              |  2 ++
 4 files changed, 39 insertions(+), 27 deletions(-)

-- 
2.15.1



More information about the mesa-dev mailing list