Skip to content

Commit 5f0b3d6

Browse files
committed
[SLP][NFC]Fix formatting and debug printing, NFC
1 parent 1d883c6 commit 5f0b3d6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17841,7 +17841,7 @@ InstructionCost BoUpSLP::calculateTreeCostAndTrimNonProfitable(
1784117841
LLVM_DEBUG(dbgs() << "SLP: Adding cost " << P.second << " for bundle "
1784217842
<< shortBundleName(P.first->Scalars, P.first->Idx)
1784317843
<< ".\n"
17844-
<< "SLP: Current total cost = " << Cost << "\n");
17844+
<< "SLP: Current total cost = " << NewCost << "\n");
1784517845
}
1784617846
if (NewCost + LoadsExtractsCost >= Cost) {
1784717847
DeletedNodes.clear();
@@ -17850,9 +17850,9 @@ InstructionCost BoUpSLP::calculateTreeCostAndTrimNonProfitable(
1785017850
} else {
1785117851
// If the remaining tree is just a buildvector - exit, it will cause
1785217852
// endless attempts to vectorize.
17853-
if (VectorizableTree.size()>= 2 && VectorizableTree.front()->hasState() &&
17853+
if (VectorizableTree.size() >= 2 && VectorizableTree.front()->hasState() &&
1785417854
VectorizableTree.front()->getOpcode() == Instruction::InsertElement &&
17855-
TransformedToGatherNodes.contains(VectorizableTree[1].get()))
17855+
TransformedToGatherNodes.contains(VectorizableTree[1].get()))
1785617856
return InstructionCost::getInvalid();
1785717857
if (VectorizableTree.size() >= 3 && VectorizableTree.front()->hasState() &&
1785817858
VectorizableTree.front()->getOpcode() == Instruction::InsertElement &&

0 commit comments

Comments
 (0)