diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-01-11 22:57:32 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-01-11 22:57:32 +0000 |
| commit | f0275df9e325d70f1ea3b8a77bb6b77cac8b5ae0 (patch) | |
| tree | 0036a7640ff9370b253ed522ccee3abe981e9818 /llvm/lib | |
| parent | 6c9913294398343a161141b938616817bf4acefb (diff) | |
| download | bcm5719-llvm-f0275df9e325d70f1ea3b8a77bb6b77cac8b5ae0.tar.gz bcm5719-llvm-f0275df9e325d70f1ea3b8a77bb6b77cac8b5ae0.zip | |
Use a DenseMap.
This appears to improve sqlite3's compile time by ~2%.
llvm-svn: 147978
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/LazyValueInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp index d27d9116103..540a73bcb2f 100644 --- a/llvm/lib/Analysis/LazyValueInfo.cpp +++ b/llvm/lib/Analysis/LazyValueInfo.cpp @@ -29,7 +29,6 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/STLExtras.h" -#include <map> #include <stack> using namespace llvm; @@ -360,7 +359,7 @@ namespace { /// ValueCacheEntryTy - This is all of the cached block information for /// exactly one Value*. The entries are sorted by the BasicBlock* of the /// entries, allowing us to do a lookup with a binary search. - typedef std::map<AssertingVH<BasicBlock>, LVILatticeVal> ValueCacheEntryTy; + typedef DenseMap<AssertingVH<BasicBlock>, LVILatticeVal> ValueCacheEntryTy; /// ValueCache - This is all of the cached information for all values, /// mapped from Value* to key information. |

