summaryrefslogtreecommitdiff
path: root/lib/Analysis/LazyValueInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-01-11 22:57:32 +0000
committerBill Wendling <isanbard@gmail.com>2012-01-11 22:57:32 +0000
commit337a269dece7f14ef0a39f980d5ee45ae3034a8f (patch)
tree4bb4dbd49336fa6b2534d2421f2e8c134938a6cc /lib/Analysis/LazyValueInfo.cpp
parenta8bd9a68f7c00fe1d895bb5e27ff804aa33abd64 (diff)
downloadllvm-337a269dece7f14ef0a39f980d5ee45ae3034a8f.tar.gz
llvm-337a269dece7f14ef0a39f980d5ee45ae3034a8f.tar.bz2
llvm-337a269dece7f14ef0a39f980d5ee45ae3034a8f.tar.xz
Use a DenseMap.
This appears to improve sqlite3's compile time by ~2%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LazyValueInfo.cpp')
-rw-r--r--lib/Analysis/LazyValueInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/LazyValueInfo.cpp b/lib/Analysis/LazyValueInfo.cpp
index d27d911610..540a73bcb2 100644
--- a/lib/Analysis/LazyValueInfo.cpp
+++ b/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.