From f0275df9e325d70f1ea3b8a77bb6b77cac8b5ae0 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 11 Jan 2012 22:57:32 +0000 Subject: [PATCH] Use a DenseMap. This appears to improve sqlite3's compile time by ~2%. llvm-svn: 147978 --- llvm/lib/Analysis/LazyValueInfo.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp index d27d91161038..540a73bcb2f3 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 #include 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, LVILatticeVal> ValueCacheEntryTy; + typedef DenseMap, LVILatticeVal> ValueCacheEntryTy; /// ValueCache - This is all of the cached information for all values, /// mapped from Value* to key information.