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 5fb2f37 commit 7c3c2baCopy full SHA for 7c3c2ba
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4376,9 +4376,7 @@ VectorizationFactor LoopVectorizationPlanner::selectEpilogueVectorizationFactor(
4376
// 'vscale'.
4377
// If TC is multiple of vscale, try to get estimated value:
4378
if (match(TC, m_scev_Mul(m_SCEV(), m_SCEVVScale()))) {
4379
- std::optional<ElementCount> BestKnownTC =
4380
- getSmallBestKnownTC(PSE, OrigLoop);
4381
- if (BestKnownTC) {
+ if (std::optional<ElementCount> BestKnownTC = getSmallBestKnownTC(PSE, OrigLoop)) {
4382
unsigned EstimatedRuntimeTC =
4383
estimateElementCount(*BestKnownTC, CM.getVScaleForTuning());
4384
TC = SE.getConstant(TCType, EstimatedRuntimeTC);
0 commit comments