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 0a0cfea commit 67d09bdCopy full SHA for 67d09bd
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4243,9 +4243,9 @@ ElementCount LoopVectorizationCostModel::getMaximizedVFForTarget(
4243
4244
// Set the max VF to the largest viable vectorization factor less than or
4245
// equal to the max vector element count.
4246
- for (ElementCount VS = MaxVectorElementCount * 2;
4247
- ElementCount::isKnownLE(VS, MaxVectorElementCountMaxBW); VS *= 2)
4248
- MaxVF = VS;
+ if (ElementCount::isKnownLE(MaxVectorElementCount,
+ MaxVectorElementCountMaxBW))
+ MaxVF = MaxVectorElementCountMaxBW;
4249
4250
if (ElementCount MinVF =
4251
TTI.getMinimumVF(SmallestType, ComputeScalableMaxVF)) {
0 commit comments