summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-11-30 23:00:30 +0000
committerZachary Turner <zturner@google.com>2017-11-30 23:00:30 +0000
commitf0e4c6a819799ef578cba48df890d15441ad3f9a (patch)
treec1da6a2cdc419560c0ff5837598af7ae0a859dbe /llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
parent03c17a0c8788b81994329800288fef12cb6dacd3 (diff)
downloadbcm5719-llvm-f0e4c6a819799ef578cba48df890d15441ad3f9a.tar.gz
bcm5719-llvm-f0e4c6a819799ef578cba48df890d15441ad3f9a.zip
Simplify the DenseSet used for hashing CodeView records.
This was storing the hash alongside the key so that the hash doesn't need to be re-computed every time, but in doing so it was allocating a structure to keep the key size small in the DenseMap. This is a noble goal, but it also leads to a pointer indirection on every probe, and this cost of this pointer indirection ends up being higher than the cost of having a slightly larger entry in the hash table. Removing this not only simplifies the code, but yields a small but noticeable performance improvement in the type merging algorithm. llvm-svn: 319493
Diffstat (limited to 'llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud