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 | 3994bed1a9baf3913b425a0f04275ab22c624d0c (patch) | |
tree | 20de2d9cd8f86056c6671820f84abfb7f4ac4b4c /llvm/lib | |
parent | 13a6911ea25ee94fc84882a02bd5982ae8a48e57 (diff) | |
download | llvm-3994bed1a9baf3913b425a0f04275ab22c624d0c.zip llvm-3994bed1a9baf3913b425a0f04275ab22c624d0c.tar.gz llvm-3994bed1a9baf3913b425a0f04275ab22c624d0c.tar.bz2 |
a missed optimization that Eli spotted
llvm-svn: 53449
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index fa4479e..e65cfac 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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); |