mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
another bug in the same line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53448 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a8ff4a88bb
commit
f9685ac68e
@ -5341,7 +5341,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
|
|||||||
if (RHSVal == Max) // A <s MAX -> A != MAX
|
if (RHSVal == Max) // A <s MAX -> A != MAX
|
||||||
return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1);
|
return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1);
|
||||||
if (RHSVal == Min+1) // A <s MIN+1 -> A == MIN
|
if (RHSVal == Min+1) // A <s MIN+1 -> A == MIN
|
||||||
return new ICmpInst(ICmpInst::ICMP_EQ, Op0, Op1);
|
return new ICmpInst(ICmpInst::ICMP_EQ, Op0, SubOne(CI));
|
||||||
break;
|
break;
|
||||||
case ICmpInst::ICMP_SGT:
|
case ICmpInst::ICMP_SGT:
|
||||||
if (Min.sgt(RHSVal)) // A >s C -> true iff min(A) > C
|
if (Min.sgt(RHSVal)) // A >s C -> true iff min(A) > C
|
||||||
|
Loading…
x
Reference in New Issue
Block a user