mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +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:
parent
7c038bc15f
commit
f22ee14444
@ -360,7 +360,7 @@ void StructurizeCFG::analyzeLoops(RegionNode *N) {
|
||||
for (unsigned i = 0, e = Term->getNumSuccessors(); i != e; ++i) {
|
||||
BasicBlock *Succ = Term->getSuccessor(i);
|
||||
|
||||
if (Visited.count(Succ) && LI->isLoopHeader(Succ) ) {
|
||||
if (Visited.count(Succ)) {
|
||||
Loops[Succ] = BB;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user