Skip to content

Commit e00d02f

Browse files
committed
update uses in LoopVectorizationLegality
- use the already defined TTI
1 parent edbd31a commit e00d02f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
927927
auto *SE = PSE.getSE();
928928
Intrinsic::ID IntrinID = getVectorIntrinsicIDForCall(CI, TLI);
929929
for (unsigned Idx = 0; Idx < CI->arg_size(); ++Idx)
930-
if (isVectorIntrinsicWithScalarOpAtArg(IntrinID, Idx)) {
930+
if (isVectorIntrinsicWithScalarOpAtArg(IntrinID, Idx, TTI)) {
931931
if (!SE->isLoopInvariant(PSE.getSCEV(CI->getOperand(Idx)),
932932
TheLoop)) {
933933
reportVectorizationFailure("Found unvectorizable intrinsic",

0 commit comments

Comments
 (0)