We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deadd91 commit 7881f91Copy full SHA for 7881f91
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4212,9 +4212,9 @@ ElementCount LoopVectorizationCostModel::getMaximizedVFForTarget(
4212
4213
// Set the max VF to the largest viable vectorization factor less than or
4214
// equal to the max vector element count.
4215
- for (ElementCount VS = MaxVectorElementCount * 2;
4216
- ElementCount::isKnownLE(VS, MaxVectorElementCountMaxBW); VS *= 2)
4217
- MaxVF = VS;
+ if (ElementCount::isKnownLE(MaxVectorElementCount,
+ MaxVectorElementCountMaxBW))
+ MaxVF = MaxVectorElementCountMaxBW;
4218
4219
if (ElementCount MinVF =
4220
TTI.getMinimumVF(SmallestType, ComputeScalableMaxVF)) {
0 commit comments