mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-26 21:56:11 +00:00
Minor code cleanups. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d7773c0d39
commit
748423059f
@ -2139,7 +2139,7 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS,
|
||||
return getTrue(ITy);
|
||||
break;
|
||||
case ICmpInst::ICMP_SGE:
|
||||
/// For signed comparison, the values for an i1 are 0 and -1
|
||||
/// For signed comparison, the values for an i1 are 0 and -1
|
||||
/// respectively. This maps into a truth table of:
|
||||
/// LHS | RHS | LHS >=s RHS | LHS implies RHS
|
||||
/// 0 | 0 | 1 (0 >= 0) | 1
|
||||
@ -2546,7 +2546,7 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS,
|
||||
return Pred == ICmpInst::ICMP_NE ?
|
||||
ConstantInt::getTrue(Ctx) : ConstantInt::getFalse(Ctx);
|
||||
}
|
||||
|
||||
|
||||
// Special logic for binary operators.
|
||||
BinaryOperator *LBO = dyn_cast<BinaryOperator>(LHS);
|
||||
BinaryOperator *RBO = dyn_cast<BinaryOperator>(RHS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user