Skip to content

Commit ef634d4

Browse files
committed
[LoopVectorize][NFC] Move "LV: Selecting VF" debug output
Move the debug output that prints out the selected VF from selectVectorizationFactor -> computeBestVF. This means that the output will still be written even after removing the assert for the legacy and vplan cost models matching.
1 parent beea5ac commit ef634d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4769,7 +4769,6 @@ VectorizationFactor LoopVectorizationPlanner::selectVectorizationFactor() {
47694769
!isMoreProfitable(ChosenFactor, ScalarCost)) dbgs()
47704770
<< "LV: Vectorization seems to be not beneficial, "
47714771
<< "but was forced by a user.\n");
4772-
LLVM_DEBUG(dbgs() << "LV: Selecting VF: " << ChosenFactor.Width << ".\n");
47734772
return ChosenFactor;
47744773
}
47754774
#endif
@@ -7698,6 +7697,7 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() {
76987697
"when vectorizing, the scalar cost must be computed.");
76997698
#endif
77007699

7700+
LLVM_DEBUG(dbgs() << "LV: Selecting VF: " << BestFactor.Width << ".\n");
77017701
return BestFactor;
77027702
}
77037703

0 commit comments

Comments
 (0)