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 ea787ad commit 845f449Copy full SHA for 845f449
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4190,8 +4190,7 @@ ElementCount LoopVectorizationCostModel::getMaximizedVFForTarget(
4190
auto MaxVectorElementCountMaxBW = ElementCount::get(
4191
llvm::bit_floor(WidestRegister.getKnownMinValue() / SmallestType),
4192
ComputeScalableMaxVF);
4193
- MaxVectorElementCountMaxBW = MinVF(MaxVectorElementCountMaxBW, MaxSafeVF);
4194
- MaxVF = MaxVectorElementCountMaxBW;
+ MaxVF = MinVF(MaxVectorElementCountMaxBW, MaxSafeVF);
4195
4196
if (ElementCount MinVF =
4197
TTI.getMinimumVF(SmallestType, ComputeScalableMaxVF)) {
0 commit comments