summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-11 06:40:29 +0000
committerChris Lattner <sabre@nondot.org>2008-07-11 06:40:29 +0000
commit3994bed1a9baf3913b425a0f04275ab22c624d0c (patch)
tree20de2d9cd8f86056c6671820f84abfb7f4ac4b4c /llvm/lib/Transforms
parent13a6911ea25ee94fc84882a02bd5982ae8a48e57 (diff)
downloadbcm5719-llvm-3994bed1a9baf3913b425a0f04275ab22c624d0c.tar.gz
bcm5719-llvm-3994bed1a9baf3913b425a0f04275ab22c624d0c.zip
a missed optimization that Eli spotted
llvm-svn: 53449
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index fa4479e8f31..e65cfacc81e 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);
OpenPOWER on IntegriCloud