mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 00:14:20 +00:00
fix formatting; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7333a98310
commit
645115fadc
@ -1398,8 +1398,7 @@ void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
|
||||
return;
|
||||
}
|
||||
// Null and aggregate-zero are all-zeros.
|
||||
if (isa<ConstantPointerNull>(V) ||
|
||||
isa<ConstantAggregateZero>(V)) {
|
||||
if (isa<ConstantPointerNull>(V) || isa<ConstantAggregateZero>(V)) {
|
||||
KnownOne.clearAllBits();
|
||||
KnownZero = APInt::getAllOnesValue(BitWidth);
|
||||
return;
|
||||
@ -3766,8 +3765,7 @@ static Value *lookThroughCast(CmpInst *CmpI, Value *V1, Value *V2,
|
||||
return CastedTo;
|
||||
}
|
||||
|
||||
SelectPatternResult llvm::matchSelectPattern(Value *V,
|
||||
Value *&LHS, Value *&RHS,
|
||||
SelectPatternResult llvm::matchSelectPattern(Value *V, Value *&LHS, Value *&RHS,
|
||||
Instruction::CastOps *CastOp) {
|
||||
SelectInst *SI = dyn_cast<SelectInst>(V);
|
||||
if (!SI) return {SPF_UNKNOWN, SPNB_NA, false};
|
||||
|
Loading…
x
Reference in New Issue
Block a user