diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-01-18 05:09:16 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-01-18 05:09:16 +0000 |
commit | 2ea22b0b84a8ba2f83abe7fc488255728aecdcf4 (patch) | |
tree | 3247d2b237d11970bb098454f932f9872681651e /llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp | |
parent | 6a7cb9f8bca274e62de52284c08ca5a3a4263780 (diff) | |
download | bcm5719-llvm-2ea22b0b84a8ba2f83abe7fc488255728aecdcf4.tar.gz bcm5719-llvm-2ea22b0b84a8ba2f83abe7fc488255728aecdcf4.zip |
Remove trailing whitespace. Remove new lines between closing brace and 'else'
llvm-svn: 172784
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp index 8bfcc805bc8..1bbedb8e9d0 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp @@ -304,12 +304,12 @@ static Value *CollectShuffleElements(Value *V, SmallVectorImpl<Constant*> &Mask, Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); return V; } - + if (isa<ConstantAggregateZero>(V)) { Mask.assign(NumElts, ConstantInt::get(Type::getInt32Ty(V->getContext()),0)); return V; } - + if (InsertElementInst *IEI = dyn_cast<InsertElementInst>(V)) { // If this is an insert of an extract from some other vector, include it. Value *VecOp = IEI->getOperand(0); @@ -609,7 +609,7 @@ Instruction *InstCombiner::visitShuffleVectorInst(ShuffleVectorInst &SVI) { eltMask = -1; } else if (Mask[i] < (int)LHSWidth) { // This element is from left hand side vector operand. - // + // // If LHS is going to be replaced (case 1, 2, or 4), calculate the // new mask value for the element. if (newLHS != LHS) { @@ -618,8 +618,7 @@ Instruction *InstCombiner::visitShuffleVectorInst(ShuffleVectorInst &SVI) { // with a -1 mask value. if (eltMask >= (int)LHSOp0Width && isa<UndefValue>(LHSOp1)) eltMask = -1; - } - else + } else eltMask = Mask[i]; } else { // This element is from right hand side vector operand @@ -639,8 +638,7 @@ Instruction *InstCombiner::visitShuffleVectorInst(ShuffleVectorInst &SVI) { && "should have been check above"); eltMask = -1; } - } - else + } else eltMask = Mask[i]-LHSWidth; // If LHS's width is changed, shift the mask value accordingly. |