Skip to content

Commit 3473171

Browse files
committed
update uses in Scalarizer
- we can pass in the already defined TTI
1 parent 5d15fba commit 3473171

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Scalar/Scalarizer.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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]);

0 commit comments

Comments
 (0)