parent
1dc4c29b6d
commit
1cbe5116ff
|
@ -155,6 +155,7 @@ Loop *LoopInfo::ConsiderForLoop(BasicBlock *BB, const DominatorSet &DS) {
|
||||||
// now by moving the loop into the correct subloop.
|
// now by moving the loop into the correct subloop.
|
||||||
//
|
//
|
||||||
Loop *SubLoop = BBMI->second;
|
Loop *SubLoop = BBMI->second;
|
||||||
|
if (SubLoop->getHeader() == *I) { // Only do this once for the loop...
|
||||||
Loop *OldSubLoopParent = SubLoop->getParentLoop();
|
Loop *OldSubLoopParent = SubLoop->getParentLoop();
|
||||||
if (OldSubLoopParent != L) {
|
if (OldSubLoopParent != L) {
|
||||||
// Remove SubLoop from OldSubLoopParent's list of subloops...
|
// Remove SubLoop from OldSubLoopParent's list of subloops...
|
||||||
|
@ -169,6 +170,7 @@ Loop *LoopInfo::ConsiderForLoop(BasicBlock *BB, const DominatorSet &DS) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return L;
|
return L;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue