diff options
author | Justin Lebar <jlebar@google.com> | 2016-07-27 22:33:36 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2016-07-27 22:33:36 +0000 |
commit | 58b377e87d8cc1682a68284a3b253cdcd2bb0b25 (patch) | |
tree | d02ab08512c638906d04869527144e961575e3f9 /clang/lib/Driver/Tools.cpp | |
parent | ed4f172c00baee0127c14df55364ae8a80b05a8e (diff) | |
download | bcm5719-llvm-58b377e87d8cc1682a68284a3b253cdcd2bb0b25.tar.gz bcm5719-llvm-58b377e87d8cc1682a68284a3b253cdcd2bb0b25.zip |
[LVI] Use DenseMap::find_as in LazyValueInfo.
Summary:
This lets us avoid creating and destroying a CallbackVH every time we
check the cache.
This is good for a 2% e2e speedup when compiling one of the large Eigen
tests at -O3.
FTR, I tried making the ValueCache hashtable one-level -- i.e., mapping
a pair (Value*, BasicBlock*) to a lattice value, and that didn't seem to
provide any additional improvement. Saving a word in LVILatticeVal by
merging the Tag and Val fields also didn't yield a speedup.
Reviewers: reames
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D21951
llvm-svn: 276926
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions