summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-05-23 17:57:54 +0000
committerSanjay Patel <spatel@rotateright.com>2016-05-23 17:57:54 +0000
commite8dc090a2b5eb642bcf6d5c9e89a19d5f109d28b (patch)
treec65cfb9efec212619fda87d2ee6f2512a89a5c26
parent1ab887d40324a2c2181d0ae02ce6717ad5f2577c (diff)
downloadbcm5719-llvm-e8dc090a2b5eb642bcf6d5c9e89a19d5f109d28b.tar.gz
bcm5719-llvm-e8dc090a2b5eb642bcf6d5c9e89a19d5f109d28b.zip
fix formatting; NFC
llvm-svn: 270465
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 3293f30f8a0..d4602dd5053 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -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};
OpenPOWER on IntegriCloud