Skip to content

Commit 1feeeb4

Browse files
authored
[LoopVectorize][NFC] Move "LV: Selecting VF" debug output (#120744)
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 d3b77a9 commit 1feeeb4

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
@@ -4695,7 +4695,6 @@ VectorizationFactor LoopVectorizationPlanner::selectVectorizationFactor() {
46954695
!isMoreProfitable(ChosenFactor, ScalarCost)) dbgs()
46964696
<< "LV: Vectorization seems to be not beneficial, "
46974697
<< "but was forced by a user.\n");
4698-
LLVM_DEBUG(dbgs() << "LV: Selecting VF: " << ChosenFactor.Width << ".\n");
46994698
return ChosenFactor;
47004699
}
47014700
#endif
@@ -7624,6 +7623,7 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() {
76247623
"when vectorizing, the scalar cost must be computed.");
76257624
#endif
76267625

7626+
LLVM_DEBUG(dbgs() << "LV: Selecting VF: " << BestFactor.Width << ".\n");
76277627
return BestFactor;
76287628
}
76297629

0 commit comments

Comments
 (0)