diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 188693596cb3..790d4c288170 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 AllocaLookup; + DenseMap AllocaLookup; /// NewPhiNodes - The PhiNodes we're adding. /// @@ -1052,7 +1052,7 @@ NextIteration: AllocaInst *Src = dyn_cast(LI->getPointerOperand()); if (!Src) continue; - std::map::iterator AI = AllocaLookup.find(Src); + DenseMap::iterator AI = AllocaLookup.find(Src); if (AI == AllocaLookup.end()) continue; Value *V = IncomingVals[AI->second]; @@ -1068,7 +1068,7 @@ NextIteration: AllocaInst *Dest = dyn_cast(SI->getPointerOperand()); if (!Dest) continue; - std::map::iterator ai = AllocaLookup.find(Dest); + DenseMap::iterator ai = AllocaLookup.find(Dest); if (ai == AllocaLookup.end()) continue;