Skip to content

Commit c7910ee

Browse files
committed
[SLP][NFC]Use std::optional::value_or.
1 parent 0044856 commit c7910ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11647,7 +11647,7 @@ class BoUpSLP::ShuffleInstructionBuilder final : public BaseShuffleAnalysis {
1164711647
return V;
1164811648
return Builder.CreateIntCast(
1164911649
V, VectorType::get(ScalarTy, VecTy->getElementCount()),
11650-
IsSigned ? *IsSigned : !isKnownNonNegative(V, SimplifyQuery(*R.DL)));
11650+
IsSigned.value_or(!isKnownNonNegative(V, SimplifyQuery(*R.DL))));
1165111651
}
1165211652

1165311653
public:

0 commit comments

Comments
 (0)