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:
Tom Stellard 2015-02-04 20:49:47 +00:00
parent 071ec90b68
commit 080209d573
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}