diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-03-09 08:20:06 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-03-09 08:20:06 +0000 |
commit | a0e2f38b25ce7c51c22ed40d8a315fe1dd98926d (patch) | |
tree | ff9102794c30627a793b71c29bb4a6df09813690 /lib/Analysis/InstructionSimplify.cpp | |
parent | 35e5475062fc0a5ce0dcbd20a49a3949fcc68ef7 (diff) |
Fix two cases I forgot to update when doing a mental "getSwappedPredicate".
Thanks Duncan Sands!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InstructionSimplify.cpp')
-rw-r--r-- | lib/Analysis/InstructionSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/InstructionSimplify.cpp b/lib/Analysis/InstructionSimplify.cpp index 2d202f7b98..9dd5f050c5 100644 --- a/lib/Analysis/InstructionSimplify.cpp +++ b/lib/Analysis/InstructionSimplify.cpp @@ -1709,7 +1709,7 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS, if (!KnownNonNegative) break; // fall-through - case ICmpInst::ICMP_EQ: + case ICmpInst::ICMP_NE: case ICmpInst::ICMP_UGT: case ICmpInst::ICMP_UGE: return ConstantInt::getTrue(RHS->getContext()); @@ -1719,7 +1719,7 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS, if (!KnownNonNegative) break; // fall-through - case ICmpInst::ICMP_NE: + case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_ULT: case ICmpInst::ICMP_ULE: return ConstantInt::getFalse(RHS->getContext()); |