Skip to content

Commit

Permalink
[LV] Clarify comment for selectVectorizationFactor (NFC).
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fhahn committed Apr 30, 2023
1 parent a431402 commit 0b24436
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Expand Up @@ -1193,9 +1193,7 @@ class LoopVectorizationCostModel {
bool runtimeChecksRequired();

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

Expand Down

0 comments on commit 0b24436

Please sign in to comment.