mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
fix formatting; NFC
llvm-svn: 270465
This commit is contained in:
parent
b74c5addf0
commit
17cf37684e
@ -1398,8 +1398,7 @@ void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Null and aggregate-zero are all-zeros.
|
// Null and aggregate-zero are all-zeros.
|
||||||
if (isa<ConstantPointerNull>(V) ||
|
if (isa<ConstantPointerNull>(V) || isa<ConstantAggregateZero>(V)) {
|
||||||
isa<ConstantAggregateZero>(V)) {
|
|
||||||
KnownOne.clearAllBits();
|
KnownOne.clearAllBits();
|
||||||
KnownZero = APInt::getAllOnesValue(BitWidth);
|
KnownZero = APInt::getAllOnesValue(BitWidth);
|
||||||
return;
|
return;
|
||||||
@ -3766,8 +3765,7 @@ static Value *lookThroughCast(CmpInst *CmpI, Value *V1, Value *V2,
|
|||||||
return CastedTo;
|
return CastedTo;
|
||||||
}
|
}
|
||||||
|
|
||||||
SelectPatternResult llvm::matchSelectPattern(Value *V,
|
SelectPatternResult llvm::matchSelectPattern(Value *V, Value *&LHS, Value *&RHS,
|
||||||
Value *&LHS, Value *&RHS,
|
|
||||||
Instruction::CastOps *CastOp) {
|
Instruction::CastOps *CastOp) {
|
||||||
SelectInst *SI = dyn_cast<SelectInst>(V);
|
SelectInst *SI = dyn_cast<SelectInst>(V);
|
||||||
if (!SI) return {SPF_UNKNOWN, SPNB_NA, false};
|
if (!SI) return {SPF_UNKNOWN, SPNB_NA, false};
|
||||||
|
Loading…
Reference in New Issue
Block a user