summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-diff/DiffConsumer.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-04-21 12:16:21 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-04-21 12:16:21 +0000
commite9f0784acc9ac0e281e90a56ad992ea18ae8cff1 (patch)
tree52f29a5c12146b02b44cbc60a72e7730515c1bff /llvm/tools/llvm-diff/DiffConsumer.h
parentdd4151504a798974c1e5c0de585dab64dc5f8165 (diff)
downloadbcm5719-llvm-e9f0784acc9ac0e281e90a56ad992ea18ae8cff1.tar.gz
bcm5719-llvm-e9f0784acc9ac0e281e90a56ad992ea18ae8cff1.zip
Add a CachedHash structure.
A DenseMap doesn't store the hashes, so it needs to recompute them when the table is resized. In some applications the hashing cost is noticeable. That is the case for example in lld for symbol names (StringRef). This patch adds a templated structure that can wraps any value that can go in a DenseMap and caches the hash. llvm-svn: 266981
Diffstat (limited to 'llvm/tools/llvm-diff/DiffConsumer.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud