mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Remove code to update loop depths
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13058 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5864aebe92
commit
446b86d381
@ -110,9 +110,6 @@ void LoopInfo::Calculate(const DominatorSet &DS) {
|
|||||||
NE = df_end(RootNode); NI != NE; ++NI)
|
NE = df_end(RootNode); NI != NE; ++NI)
|
||||||
if (Loop *L = ConsiderForLoop(*NI, DS))
|
if (Loop *L = ConsiderForLoop(*NI, DS))
|
||||||
TopLevelLoops.push_back(L);
|
TopLevelLoops.push_back(L);
|
||||||
|
|
||||||
for (unsigned i = 0; i < TopLevelLoops.size(); ++i)
|
|
||||||
TopLevelLoops[i]->setLoopDepth(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoopInfo::getAnalysisUsage(AnalysisUsage &AU) const {
|
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(),
|
for (std::map<BasicBlock*, Loop*>::const_iterator I = BBMap.begin(),
|
||||||
E = BBMap.end(); I != E; ++I)
|
E = BBMap.end(); I != E; ++I)
|
||||||
OS << "BB '" << I->first->getName() << "' level = "
|
OS << "BB '" << I->first->getName() << "' level = "
|
||||||
<< I->second->LoopDepth << "\n";
|
<< I->second->getLoopDepth() << "\n";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -497,9 +494,6 @@ void Loop::replaceChildLoopWith(Loop *OldChild, Loop *NewChild) {
|
|||||||
*I = NewChild;
|
*I = NewChild;
|
||||||
OldChild->ParentLoop = 0;
|
OldChild->ParentLoop = 0;
|
||||||
NewChild->ParentLoop = this;
|
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.
|
/// 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!");
|
assert(NewChild->ParentLoop == 0 && "NewChild already has a parent!");
|
||||||
NewChild->ParentLoop = this;
|
NewChild->ParentLoop = this;
|
||||||
SubLoops.push_back(NewChild);
|
SubLoops.push_back(NewChild);
|
||||||
|
|
||||||
// Update the loop depth of the new child.
|
|
||||||
NewChild->setLoopDepth(LoopDepth+1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user