[llvm-commits] CVS: llvm/lib/Analysis/LoopInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Apr 18 22:02:01 PDT 2004
Changes in directory llvm/lib/Analysis:
LoopInfo.cpp updated: 1.54 -> 1.55
---
Log message:
Remove code to update loop depths
---
Diffs of the changes: (+1 -10)
Index: llvm/lib/Analysis/LoopInfo.cpp
diff -u llvm/lib/Analysis/LoopInfo.cpp:1.54 llvm/lib/Analysis/LoopInfo.cpp:1.55
--- llvm/lib/Analysis/LoopInfo.cpp:1.54 Sun Apr 18 17:45:27 2004
+++ llvm/lib/Analysis/LoopInfo.cpp Sun Apr 18 22:02:09 2004
@@ -110,9 +110,6 @@
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 @@
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 @@
*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 @@
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>
More information about the llvm-commits
mailing list