Add id to name map
authorSteven Perron <stevenperron@google.com>
Tue, 13 Feb 2018 04:28:38 +0000 (23:28 -0500)
committerSteven Perron <stevenperron@google.com>
Wed, 14 Feb 2018 20:53:13 +0000 (15:53 -0500)
commit0e9f2f948a50c02c1675765c6f847cb64139305a
tree8f58628874287587ae971b71a29c518429b12be2
parent6669d8163dca26db521dfea477fd8589c47fb4c8
Add id to name map

Adding a map from an id to it set of OpName and OpMemberName
instructions.  This will be used in KillNameAndDecorates to kill the
names for the ids that are being removed.

In my test, the compile time for 50 shaders went from 1m57s to 55s.
This was on linux using the release build.

Fixes #1290.
source/opt/if_conversion.h
source/opt/ir_context.cpp
source/opt/ir_context.h
source/opt/local_redundancy_elimination.h
source/opt/private_to_local_pass.h
source/opt/scalar_replacement_pass.h