Skip to content

Commit 0b24436

Browse files
committed
[LV] Clarify comment for selectVectorizationFactor (NFC).
The comment is stale, as UserVF is handled before selectVectorizationFactor is called. Clarify the comment by remove the mention of UserVF. Suggested as independent improvement in D143938.
1 parent a431402 commit 0b24436

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,9 +1193,7 @@ class LoopVectorizationCostModel {
11931193
bool runtimeChecksRequired();
11941194

11951195
/// \return The most profitable vectorization factor and the cost of that VF.
1196-
/// This method checks every VF in \p CandidateVFs. If UserVF is not ZERO
1197-
/// then this vectorization factor will be selected if vectorization is
1198-
/// possible.
1196+
/// This method checks every VF in \p CandidateVFs.
11991197
VectorizationFactor
12001198
selectVectorizationFactor(const ElementCountSet &CandidateVFs);
12011199

0 commit comments

Comments
 (0)