mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Fix the requisite bug that I introduced
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5605 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -155,6 +155,7 @@ Loop *LoopInfo::ConsiderForLoop(BasicBlock *BB, const DominatorSet &DS) {
|
||||
// now by moving the loop into the correct subloop.
|
||||
//
|
||||
Loop *SubLoop = BBMI->second;
|
||||
if (SubLoop->getHeader() == *I) { // Only do this once for the loop...
|
||||
Loop *OldSubLoopParent = SubLoop->getParentLoop();
|
||||
if (OldSubLoopParent != L) {
|
||||
// Remove SubLoop from OldSubLoopParent's list of subloops...
|
||||
@@ -169,6 +170,7 @@ Loop *LoopInfo::ConsiderForLoop(BasicBlock *BB, const DominatorSet &DS) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return L;
|
||||
}
|
||||
|
Reference in New Issue
Block a user