mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Fix PR3913, patch by Jakub Staszak!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80327 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -435,7 +435,7 @@ bool LoopIndexSplit::processOneIterationLoop() {
|
||||
|
||||
CmpInst::Predicate C2P = ExitCondition->getPredicate();
|
||||
BranchInst *LatchBR = cast<BranchInst>(Latch->getTerminator());
|
||||
if (LatchBR->getOperand(0) != Header)
|
||||
if (LatchBR->getOperand(1) != Header)
|
||||
C2P = CmpInst::getInversePredicate(C2P);
|
||||
Instruction *C2 = new ICmpInst(BR, C2P, SplitValue, ExitValue, "lisplit");
|
||||
Instruction *NSplitCond = BinaryOperator::CreateAnd(C1, C2, "lisplit", BR);
|
||||
|
Reference in New Issue
Block a user