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 | 774647d97448b34f38bb5ab57d032782b6234baf (patch) | |
tree | 3aa8293a5c0c5a0772fb42015c41d03e4eb59fa4 /llvm/lib/Analysis/InstructionSimplify.cpp | |
parent | 46288eff24ad0b4826690e598758ccf9e61d144c (diff) | |
download | bcm5719-llvm-774647d97448b34f38bb5ab57d032782b6234baf.tar.gz bcm5719-llvm-774647d97448b34f38bb5ab57d032782b6234baf.zip |
Fix two cases I forgot to update when doing a mental "getSwappedPredicate".
Thanks Duncan Sands!
llvm-svn: 127323
Diffstat (limited to 'llvm/lib/Analysis/InstructionSimplify.cpp')
-rw-r--r-- | llvm/lib/Analysis/InstructionSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp index 2d202f7b983..9dd5f050c58 100644 --- a/llvm/lib/Analysis/InstructionSimplify.cpp +++ b/llvm/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()); |