diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-01-18 04:50:38 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-01-18 04:50:38 +0000 |
commit | fc210c79b7cc603a2912aaa9115e63dcfc9ef8a6 (patch) | |
tree | a0412464484445a294641f539e7d4ae7886c610b /llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp | |
parent | 6968c41ac82752cf768d7e5efa73d307118d66c8 (diff) | |
download | bcm5719-llvm-fc210c79b7cc603a2912aaa9115e63dcfc9ef8a6.tar.gz bcm5719-llvm-fc210c79b7cc603a2912aaa9115e63dcfc9ef8a6.zip |
Convert a std::map to a DenseMap for another 1.7% speedup on -scalarrepl.
llvm-svn: 123732
Diffstat (limited to 'llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 188693596cb..790d4c28817 100644 --- a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -198,7 +198,7 @@ namespace { /// AllocaLookup - Reverse mapping of Allocas. /// - std::map<AllocaInst*, unsigned> AllocaLookup; + DenseMap<AllocaInst*, unsigned> AllocaLookup; /// NewPhiNodes - The PhiNodes we're adding. /// @@ -1052,7 +1052,7 @@ NextIteration: AllocaInst *Src = dyn_cast<AllocaInst>(LI->getPointerOperand()); if (!Src) continue; - std::map<AllocaInst*, unsigned>::iterator AI = AllocaLookup.find(Src); + DenseMap<AllocaInst*, unsigned>::iterator AI = AllocaLookup.find(Src); if (AI == AllocaLookup.end()) continue; Value *V = IncomingVals[AI->second]; @@ -1068,7 +1068,7 @@ NextIteration: AllocaInst *Dest = dyn_cast<AllocaInst>(SI->getPointerOperand()); if (!Dest) continue; - std::map<AllocaInst *, unsigned>::iterator ai = AllocaLookup.find(Dest); + DenseMap<AllocaInst *, unsigned>::iterator ai = AllocaLookup.find(Dest); if (ai == AllocaLookup.end()) continue; |