mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Fix regression that I caused yesterday night while adding logic to select appropriate split condition branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
90e167a908
commit
7097e9a710
@ -903,7 +903,7 @@ bool LoopIndexSplit::splitLoop(SplitInfo &SD) {
|
|||||||
A_ActiveBranch = A_BR->getSuccessor(1);
|
A_ActiveBranch = A_BR->getSuccessor(1);
|
||||||
A_InactiveBranch = A_BR->getSuccessor(0);
|
A_InactiveBranch = A_BR->getSuccessor(0);
|
||||||
}
|
}
|
||||||
A_BR->setUnconditionalDest(A_BR->getSuccessor(0));
|
A_BR->setUnconditionalDest(A_ActiveBranch);
|
||||||
removeBlocks(A_InactiveBranch, L, A_ActiveBranch);
|
removeBlocks(A_InactiveBranch, L, A_ActiveBranch);
|
||||||
|
|
||||||
//[*] Eliminate split condition's inactive branch in from BLoop.
|
//[*] Eliminate split condition's inactive branch in from BLoop.
|
||||||
@ -918,7 +918,7 @@ bool LoopIndexSplit::splitLoop(SplitInfo &SD) {
|
|||||||
B_ActiveBranch = B_BR->getSuccessor(0);
|
B_ActiveBranch = B_BR->getSuccessor(0);
|
||||||
B_InactiveBranch = B_BR->getSuccessor(1);
|
B_InactiveBranch = B_BR->getSuccessor(1);
|
||||||
}
|
}
|
||||||
B_BR->setUnconditionalDest(B_BR->getSuccessor(1));
|
B_BR->setUnconditionalDest(B_ActiveBranch);
|
||||||
removeBlocks(B_InactiveBranch, BLoop, B_ActiveBranch);
|
removeBlocks(B_InactiveBranch, BLoop, B_ActiveBranch);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user