mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
fix a bug spotted by Eli's eagle eyes
llvm-svn: 53447
This commit is contained in:
parent
3d40848bfd
commit
3cdb6789b9
@ -5340,8 +5340,8 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
|
||||
return ReplaceInstUsesWith(I, ConstantInt::getFalse());
|
||||
if (RHSVal == Max) // A <s MAX -> A != MAX
|
||||
return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1);
|
||||
if (RHSVal == Min-1) // A <s MIN+1 -> A == MIN
|
||||
return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1);
|
||||
if (RHSVal == Min+1) // A <s MIN+1 -> A == MIN
|
||||
return new ICmpInst(ICmpInst::ICMP_EQ, Op0, Op1);
|
||||
break;
|
||||
case ICmpInst::ICMP_SGT:
|
||||
if (Min.sgt(RHSVal)) // A >s C -> true iff min(A) > C
|
||||
|
Loading…
Reference in New Issue
Block a user