forked from OSchip/llvm-project
StructurizeCFG: Remove obsolete fix for loop backedge detection
This is no longer needed now that we are using a reverse post-order traversal. llvm-svn: 228187
This commit is contained in:
parent
071ec90b68
commit
080209d573
|
@ -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…
Reference in New Issue