diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-05-23 17:57:54 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-05-23 17:57:54 +0000 |
commit | e8dc090a2b5eb642bcf6d5c9e89a19d5f109d28b (patch) | |
tree | c65cfb9efec212619fda87d2ee6f2512a89a5c26 /llvm/lib/Analysis | |
parent | 1ab887d40324a2c2181d0ae02ce6717ad5f2577c (diff) | |
download | bcm5719-llvm-e8dc090a2b5eb642bcf6d5c9e89a19d5f109d28b.tar.gz bcm5719-llvm-e8dc090a2b5eb642bcf6d5c9e89a19d5f109d28b.zip |
fix formatting; NFC
llvm-svn: 270465
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 6 |
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}; |