diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-11 06:40:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-11 06:40:29 +0000 |
commit | d01bee71705d11078b7db19a8e56503b974c8899 (patch) | |
tree | 76627a86efe241997edf8821baf4b25aab36a398 | |
parent | f9685ac68e27cd53eb16e55e818dcbbd487a05f3 (diff) | |
download | llvm-d01bee71705d11078b7db19a8e56503b974c8899.tar.gz llvm-d01bee71705d11078b7db19a8e56503b974c8899.tar.bz2 llvm-d01bee71705d11078b7db19a8e56503b974c8899.tar.xz |
a missed optimization that Eli spotted
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53449 91177308-0d34-0410-b5e6-96231b3b80d8
-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 fa4479e8f3..e65cfacc81 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -5336,7 +5336,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) { case ICmpInst::ICMP_SLT: if (Max.slt(RHSVal)) // A <s C -> true iff max(A) < C return ReplaceInstUsesWith(I, ConstantInt::getTrue()); - if (Min.sgt(RHSVal)) // A <s C -> false iff min(A) >= C + if (Min.sge(RHSVal)) // A <s C -> false iff min(A) >= C return ReplaceInstUsesWith(I, ConstantInt::getFalse()); if (RHSVal == Max) // A <s MAX -> A != MAX return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1); |