Skip to content

Commit b17f607

Browse files
committed
[SLP][NFC]Remove unnecessary std::optional around Factor value
1 parent d0d726e commit b17f607

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10296,10 +10296,10 @@ class BoUpSLP::ShuffleCostEstimator : public BaseShuffleAnalysis {
1029610296
Idx = EMask[Idx];
1029710297
}
1029810298
CommonVF = E->Scalars.size();
10299-
} else if (std::optional<unsigned> Factor = E->getInterleaveFactor();
10300-
Factor && E->Scalars.size() != Mask.size() &&
10299+
} else if (unsigned Factor = E->getInterleaveFactor();
10300+
Factor > 0 && E->Scalars.size() != Mask.size() &&
1030110301
ShuffleVectorInst::isDeInterleaveMaskOfFactor(CommonMask,
10302-
*Factor)) {
10302+
Factor)) {
1030310303
// Deinterleaved nodes are free.
1030410304
std::iota(CommonMask.begin(), CommonMask.end(), 0);
1030510305
}

0 commit comments

Comments
 (0)