File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
llvm/lib/Transforms/Scalar Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -743,7 +743,7 @@ bool ScalarizerVisitor::splitCall(CallInst &CI) {
743743 // will only scalarize when the struct elements have the same bitness.
744744 if (!CurrVS || CurrVS->NumPacked != VS->NumPacked )
745745 return false ;
746- if (isVectorIntrinsicWithStructReturnOverloadAtField (ID, I))
746+ if (isVectorIntrinsicWithStructReturnOverloadAtField (ID, I, TTI ))
747747 Tys.push_back (CurrVS->SplitTy );
748748 }
749749 }
@@ -794,8 +794,7 @@ bool ScalarizerVisitor::splitCall(CallInst &CI) {
794794 Tys[0 ] = VS->RemainderTy ;
795795
796796 for (unsigned J = 0 ; J != NumArgs; ++J) {
797- if (isVectorIntrinsicWithScalarOpAtArg (ID, J) ||
798- TTI->isTargetIntrinsicWithScalarOpAtArg (ID, J)) {
797+ if (isVectorIntrinsicWithScalarOpAtArg (ID, J, TTI)) {
799798 ScalarCallOps.push_back (ScalarOperands[J]);
800799 } else {
801800 ScalarCallOps.push_back (Scattered[J][I]);
You can’t perform that action at this time.
0 commit comments