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 | 13a6911ea25ee94fc84882a02bd5982ae8a48e57 (patch) | |
| tree | a523b21aff660e2de23377a677931fabb0e474b8 /llvm/lib/Transforms | |
| parent | de89b507ddb3263dfed785b232e47ac710484461 (diff) | |
| download | bcm5719-llvm-13a6911ea25ee94fc84882a02bd5982ae8a48e57.tar.gz bcm5719-llvm-13a6911ea25ee94fc84882a02bd5982ae8a48e57.zip | |
another bug in the same line.
llvm-svn: 53448
Diffstat (limited to 'llvm/lib/Transforms')
| -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 0cb96d52b80..fa4479e8f31 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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 |

