mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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
This commit is contained in:
parent
35e5475062
commit
a0e2f38b25
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user