File tree Expand file tree Collapse file tree
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree Original file line number Diff line number Diff 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 &&
You can’t perform that action at this time.
0 commit comments