diff options
author | Dan Gohman <gohman@apple.com> | 2011-05-09 18:44:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-05-09 18:44:09 +0000 |
commit | 0daf687e1d09f7b056cfa7ed598eef0fe9f8fad0 (patch) | |
tree | 31d35180220ed051ddf9b4fbaec2e090acc92ae3 /llvm/lib/Analysis/ScalarEvolution.cpp | |
parent | f479f1b7e4102072e3c6899b4f9c9122543ae880 (diff) | |
download | bcm5719-llvm-0daf687e1d09f7b056cfa7ed598eef0fe9f8fad0.tar.gz bcm5719-llvm-0daf687e1d09f7b056cfa7ed598eef0fe9f8fad0.zip |
Change a few std::maps to DenseMaps.
llvm-svn: 131088
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index bab4619894c..eef41554f4f 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -3783,7 +3783,7 @@ ScalarEvolution::getBackedgeTakenInfo(const Loop *L) { // update the value. The temporary CouldNotCompute value tells SCEV // code elsewhere that it shouldn't attempt to request a new // backedge-taken count, which could result in infinite recursion. - std::pair<std::map<const Loop *, BackedgeTakenInfo>::iterator, bool> Pair = + std::pair<DenseMap<const Loop *, BackedgeTakenInfo>::iterator, bool> Pair = BackedgeTakenCounts.insert(std::make_pair(L, getCouldNotCompute())); if (!Pair.second) return Pair.first->second; @@ -4433,7 +4433,7 @@ Constant * ScalarEvolution::getConstantEvolutionLoopExitValue(PHINode *PN, const APInt &BEs, const Loop *L) { - std::map<PHINode*, Constant*>::const_iterator I = + DenseMap<PHINode*, Constant*>::const_iterator I = ConstantEvolutionLoopExitValue.find(PN); if (I != ConstantEvolutionLoopExitValue.end()) return I->second; |