diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-11 06:38:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-11 06:38:16 +0000 |
commit | f9685ac68e27cd53eb16e55e818dcbbd487a05f3 (patch) | |
tree | 78aae4f304b920ccf8a42f22aea5269111b44f3f /lib/Transforms | |
parent | a8ff4a88bb604979c254e935445b9c363f470949 (diff) |
another bug in the same line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 0cb96d52b8..fa4479e8f3 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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 |