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 94058a7 commit 3fa90d4Copy full SHA for 3fa90d4
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4382,7 +4382,7 @@ VectorizationFactor LoopVectorizationPlanner::selectEpilogueVectorizationFactor(
4382
SE.getURemExpr(TC, SE.getElementCount(TCType, MainLoopVF * IC));
4383
else if (ScalableTC) {
4384
const SCEV *EstimatedTC = SE.getMulExpr(
4385
- KnownMinTC, SE.getConstant(TCType, CM.getVScaleForTuning().value()));
+ KnownMinTC, SE.getConstant(TCType, CM.getVScaleForTuning().value_or(1)));
4386
RemainingIterations = SE.getURemExpr(
4387
EstimatedTC, SE.getElementCount(TCType, MainLoopVF * IC));
4388
} else
0 commit comments