diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-11-19 22:20:18 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-11-19 22:20:18 +0000 |
commit | 5f7c48ebff2c661e024e4d36fd4687d0c2bade4c (patch) | |
tree | 80ceada501a3f8271591fab5f29e9e975a0c882d /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | ecf81c09f5ac4de9910829dab947e5dc763bd6a8 (diff) | |
download | bcm5719-llvm-5f7c48ebff2c661e024e4d36fd4687d0c2bade4c.tar.gz bcm5719-llvm-5f7c48ebff2c661e024e4d36fd4687d0c2bade4c.zip |
SLPVectorizer: Fix whitespace errors
llvm-svn: 195161
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 5c185f1e67b..0c962d68a9d 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -1869,7 +1869,7 @@ bool SLPVectorizer::vectorizeStoreChain(ArrayRef<Value *> Chain, } } - return Changed; + return Changed; } bool SLPVectorizer::vectorizeStores(ArrayRef<StoreInst *> Stores, @@ -1974,7 +1974,7 @@ bool SLPVectorizer::tryToVectorizeList(ArrayRef<Value *> VL, BoUpSLP &R) { return false; unsigned Opcode0 = I0->getOpcode(); - + Type *Ty0 = I0->getType(); unsigned Sz = DL->getTypeSizeInBits(Ty0); unsigned VF = MinVecRegSize / Sz; @@ -1989,11 +1989,11 @@ bool SLPVectorizer::tryToVectorizeList(ArrayRef<Value *> VL, BoUpSLP &R) { } bool Changed = false; - + for (unsigned i = 0, e = VL.size(); i < e; ++i) { unsigned OpsWidth = 0; - - if (i + VF > e) + + if (i + VF > e) OpsWidth = e - i; else OpsWidth = VF; @@ -2001,23 +2001,24 @@ bool SLPVectorizer::tryToVectorizeList(ArrayRef<Value *> VL, BoUpSLP &R) { if (!isPowerOf2_32(OpsWidth) || OpsWidth < 2) break; - DEBUG(dbgs() << "SLP: Analyzing " << OpsWidth << " operations " << "\n"); + DEBUG(dbgs() << "SLP: Analyzing " << OpsWidth << " operations " + << "\n"); ArrayRef<Value *> Ops = VL.slice(i, OpsWidth); - + R.buildTree(Ops); int Cost = R.getTreeCost(); - + if (Cost < -SLPCostThreshold) { DEBUG(dbgs() << "SLP: Vectorizing pair at cost:" << Cost << ".\n"); R.vectorizeTree(); - + // Move to the next bundle. i += VF - 1; Changed = true; } } - - return Changed; + + return Changed; } bool SLPVectorizer::tryToVectorize(BinaryOperator *V, BoUpSLP &R) { |