mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 19:24:25 +00:00
Fix test/Transforms/InstCombine/2007-01-27-AndICmp.ll, a miscompilation of
Mozilla that Anton tracked down. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33591 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -3288,7 +3288,8 @@ Instruction *InstCombiner::visitAnd(BinaryOperator &I) {
|
|||||||
Instruction *Add = BinaryOperator::createAdd(LHSVal, AddCST,
|
Instruction *Add = BinaryOperator::createAdd(LHSVal, AddCST,
|
||||||
LHSVal->getName()+".off");
|
LHSVal->getName()+".off");
|
||||||
InsertNewInstBefore(Add, I);
|
InsertNewInstBefore(Add, I);
|
||||||
return new ICmpInst(ICmpInst::ICMP_UGT, Add, AddCST);
|
return new ICmpInst(ICmpInst::ICMP_UGT, Add,
|
||||||
|
ConstantInt::get(Add->getType(), 1));
|
||||||
}
|
}
|
||||||
break; // (X != 13 & X != 15) -> no change
|
break; // (X != 13 & X != 15) -> no change
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user