another bug in the same line.

llvm-svn: 53448
This commit is contained in:
Chris Lattner 2008-07-11 06:38:16 +00:00
parent de89b507dd
commit 13a6911ea2
1 changed files with 1 additions and 1 deletions

View File

@ -5341,7 +5341,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
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_EQ, Op0, Op1);
return new ICmpInst(ICmpInst::ICMP_EQ, Op0, SubOne(CI));
break;
case ICmpInst::ICMP_SGT:
if (Min.sgt(RHSVal)) // A >s C -> true iff min(A) > C