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.
getVectorSplit
1 parent 96f95a4 commit 9f94e81Copy full SHA for 9f94e81
llvm/lib/Transforms/Scalar/Scalarizer.cpp
@@ -736,6 +736,11 @@ bool ScalarizerVisitor::splitCall(CallInst &CI) {
736
Type *CurrType = cast<FixedVectorType>(CallType->getContainedType(I));
737
if (PrevType != CurrType) {
738
std::optional<VectorSplit> CurrVS = getVectorSplit(CurrType);
739
+ // This case does not seem to happen, but it is possible for
740
+ // VectorSplit.NumPacked >= NumElems. If that happens a VectorSplit
741
+ // is not returned and we will bailout of handling this call.
742
+ if (!CurrVS)
743
+ return false;
744
Tys.push_back(CurrVS->SplitTy);
745
PrevType = CurrType;
746
}
0 commit comments