diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-11-20 06:27:56 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-11-20 06:27:56 +0000 |
commit | 8e5b91849a39173b1ce1c15e0e279b94562204b5 (patch) | |
tree | 96eb8ab9481a2d2e38f184b72c4ac5dfee1b37e7 /lib | |
parent | a87a147ee7bb9adb4caea631ff0ba7e66bb9b0b5 (diff) | |
download | external_llvm-8e5b91849a39173b1ce1c15e0e279b94562204b5.zip external_llvm-8e5b91849a39173b1ce1c15e0e279b94562204b5.tar.gz external_llvm-8e5b91849a39173b1ce1c15e0e279b94562204b5.tar.bz2 |
Merging r195161:
------------------------------------------------------------------------
r195161 | arnolds | 2013-11-19 14:20:18 -0800 (Tue, 19 Nov 2013) | 1 line
SLPVectorizer: Fix whitespace errors
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Vectorize/SLPVectorizer.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index 5c185f1..0c962d6 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/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) { |