SLPVectorizer: Fix whitespace errors.

llvm-svn: 195468
This commit is contained in:
Arnold Schwaighofer 2013-11-22 15:47:17 +00:00
parent 5a8e985ad3
commit 1756e1ea92
1 changed files with 4 additions and 5 deletions

View File

@ -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;
}