mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
StructurizeCFG: Remove obsolete fix for loop backedge detection
This is no longer needed now that we are using a reverse post-order traversal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228187 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -360,7 +360,7 @@ void StructurizeCFG::analyzeLoops(RegionNode *N) {
|
|||||||
for (unsigned i = 0, e = Term->getNumSuccessors(); i != e; ++i) {
|
for (unsigned i = 0, e = Term->getNumSuccessors(); i != e; ++i) {
|
||||||
BasicBlock *Succ = Term->getSuccessor(i);
|
BasicBlock *Succ = Term->getSuccessor(i);
|
||||||
|
|
||||||
if (Visited.count(Succ) && LI->isLoopHeader(Succ) ) {
|
if (Visited.count(Succ)) {
|
||||||
Loops[Succ] = BB;
|
Loops[Succ] = BB;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user