summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2013-11-22 15:47:17 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2013-11-22 15:47:17 +0000
commit1756e1ea9210a4a13a7e3a0c5b95bf679ddbd0c2 (patch)
treed71bf59bebc4b58c0b40185b940a2018d59f4205 /llvm/lib/Transforms
parent5a8e985ad34319f274c47641a2194929e5d6babf (diff)
downloadbcm5719-llvm-1756e1ea9210a4a13a7e3a0c5b95bf679ddbd0c2.tar.gz
bcm5719-llvm-1756e1ea9210a4a13a7e3a0c5b95bf679ddbd0c2.zip
SLPVectorizer: Fix whitespace errors.
llvm-svn: 195468
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 91ccac7c2e6..68a7f64e7af 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -411,7 +411,7 @@ private:
/// \returns whether the VectorizableTree is fully vectoriable and will
/// be beneficial even the tree height is tiny.
- bool isFullyVectorizableTinyTree();
+ bool isFullyVectorizableTinyTree();
struct TreeEntry {
TreeEntry() : Scalars(), VectorizedValue(0), LastScalarIndex(0),
@@ -1082,20 +1082,19 @@ int BoUpSLP::getTreeCost() {
Cost += C;
}
- SmallSet<Value *, 16> ExtractCostCalculated;
+ SmallSet<Value *, 16> ExtractCostCalculated;
int ExtractCost = 0;
for (UserList::iterator I = ExternalUses.begin(), E = ExternalUses.end();
I != E; ++I) {
- // We only add extract cost once for the same scalar.
+ // We only add extract cost once for the same scalar.
if (!ExtractCostCalculated.insert(I->Scalar))
- continue;
+ continue;
VectorType *VecTy = VectorType::get(I->Scalar->getType(), BundleWidth);
ExtractCost += TTI->getVectorInstrCost(Instruction::ExtractElement, VecTy,
I->Lane);
}
-
DEBUG(dbgs() << "SLP: Total Cost " << Cost + ExtractCost<< ".\n");
return Cost + ExtractCost;
}
OpenPOWER on IntegriCloud