summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-19 03:02:09 +0000
committerChris Lattner <sabre@nondot.org>2004-04-19 03:02:09 +0000
commit32447c55fe54cf1a24f43083ad48416939200a11 (patch)
tree690fe47c46fa4a90d93854f3d9ba1596c385cda2 /llvm/lib/Analysis
parentbc02177fdc1f65fa020b96297dc67cd69d89e8d1 (diff)
downloadbcm5719-llvm-32447c55fe54cf1a24f43083ad48416939200a11.tar.gz
bcm5719-llvm-32447c55fe54cf1a24f43083ad48416939200a11.zip
Remove code to update loop depths
llvm-svn: 13058
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/LoopInfo.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp
index 181cae0ab07..c4b2bf68146 100644
--- a/llvm/lib/Analysis/LoopInfo.cpp
+++ b/llvm/lib/Analysis/LoopInfo.cpp
@@ -110,9 +110,6 @@ void LoopInfo::Calculate(const DominatorSet &DS) {
NE = df_end(RootNode); NI != NE; ++NI)
if (Loop *L = ConsiderForLoop(*NI, DS))
TopLevelLoops.push_back(L);
-
- for (unsigned i = 0; i < TopLevelLoops.size(); ++i)
- TopLevelLoops[i]->setLoopDepth(1);
}
void LoopInfo::getAnalysisUsage(AnalysisUsage &AU) const {
@@ -127,7 +124,7 @@ void LoopInfo::print(std::ostream &OS) const {
for (std::map<BasicBlock*, Loop*>::const_iterator I = BBMap.begin(),
E = BBMap.end(); I != E; ++I)
OS << "BB '" << I->first->getName() << "' level = "
- << I->second->LoopDepth << "\n";
+ << I->second->getLoopDepth() << "\n";
#endif
}
@@ -497,9 +494,6 @@ void Loop::replaceChildLoopWith(Loop *OldChild, Loop *NewChild) {
*I = NewChild;
OldChild->ParentLoop = 0;
NewChild->ParentLoop = this;
-
- // Update the loop depth of the new child.
- NewChild->setLoopDepth(LoopDepth+1);
}
/// addChildLoop - Add the specified loop to be a child of this loop.
@@ -508,9 +502,6 @@ void Loop::addChildLoop(Loop *NewChild) {
assert(NewChild->ParentLoop == 0 && "NewChild already has a parent!");
NewChild->ParentLoop = this;
SubLoops.push_back(NewChild);
-
- // Update the loop depth of the new child.
- NewChild->setLoopDepth(LoopDepth+1);
}
template<typename T>
OpenPOWER on IntegriCloud