Skip to content

Commit 7c3c2ba

Browse files
committed
resolve review comments
1 parent 5fb2f37 commit 7c3c2ba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4376,9 +4376,7 @@ VectorizationFactor LoopVectorizationPlanner::selectEpilogueVectorizationFactor(
43764376
// 'vscale'.
43774377
// If TC is multiple of vscale, try to get estimated value:
43784378
if (match(TC, m_scev_Mul(m_SCEV(), m_SCEVVScale()))) {
4379-
std::optional<ElementCount> BestKnownTC =
4380-
getSmallBestKnownTC(PSE, OrigLoop);
4381-
if (BestKnownTC) {
4379+
if (std::optional<ElementCount> BestKnownTC = getSmallBestKnownTC(PSE, OrigLoop)) {
43824380
unsigned EstimatedRuntimeTC =
43834381
estimateElementCount(*BestKnownTC, CM.getVScaleForTuning());
43844382
TC = SE.getConstant(TCType, EstimatedRuntimeTC);

0 commit comments

Comments
 (0)