@@ -10079,7 +10079,7 @@ bool SLPVectorizerPass::vectorizeStoreChain(ArrayRef<Value *> Chain, BoUpSLP &R,
10079
10079
10080
10080
InstructionCost Cost = R.getTreeCost ();
10081
10081
10082
- LLVM_DEBUG (dbgs () << " SLP: Found cost = " << Cost << " for VF =" << VF << " \n " );
10082
+ LLVM_DEBUG (dbgs () << " SLP: Found cost = " << Cost << " for VF=" << VF << " \n " );
10083
10083
if (Cost < -SLPCostThreshold) {
10084
10084
LLVM_DEBUG (dbgs () << " SLP: Decided to vectorize cost = " << Cost << " \n " );
10085
10085
@@ -10380,6 +10380,7 @@ bool SLPVectorizerPass::tryToVectorizeList(ArrayRef<Value *> VL, BoUpSLP &R,
10380
10380
CandidateFound = true ;
10381
10381
MinCost = std::min (MinCost, Cost);
10382
10382
10383
+ LLVM_DEBUG (dbgs () << " SLP: Found cost = " << Cost << " for VF=" << VF << " \n " );
10383
10384
if (Cost < -SLPCostThreshold) {
10384
10385
LLVM_DEBUG (dbgs () << " SLP: Vectorizing list at cost:" << Cost << " .\n " );
10385
10386
R.getORE ()->emit (OptimizationRemark (SV_NAME, " VectorizedList" ,
@@ -11219,8 +11220,8 @@ class HorizontalReduction {
11219
11220
InstructionCost ReductionCost =
11220
11221
getReductionCost (TTI, VL, ReduxWidth, RdxFMF);
11221
11222
InstructionCost Cost = TreeCost + ReductionCost;
11223
+ LLVM_DEBUG (dbgs () << " SLP: Found cost = " << Cost << " for reduction\n " );
11222
11224
if (!Cost.isValid ()) {
11223
- LLVM_DEBUG (dbgs () << " Encountered invalid baseline cost.\n " );
11224
11225
return nullptr ;
11225
11226
}
11226
11227
if (Cost >= -SLPCostThreshold) {
0 commit comments