Skip to content

Commit 59ef511

Browse files
committed
update VPlanRecipe uses
- use the updated VPTransformState to pass down the TTI
1 parent 71d75fe commit 59ef511

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ void VPWidenIntrinsicRecipe::execute(VPTransformState &State) {
974974

975975
SmallVector<Type *, 2> TysForDecl;
976976
// Add return type if intrinsic is overloaded on it.
977-
if (isVectorIntrinsicWithOverloadTypeAtArg(VectorIntrinsicID, -1))
977+
if (isVectorIntrinsicWithOverloadTypeAtArg(VectorIntrinsicID, -1, State.TTI))
978978
TysForDecl.push_back(VectorType::get(getResultType(), State.VF));
979979
SmallVector<Value *, 4> Args;
980980
for (const auto &I : enumerate(operands())) {
@@ -985,7 +985,8 @@ void VPWidenIntrinsicRecipe::execute(VPTransformState &State) {
985985
Arg = State.get(I.value(), VPLane(0));
986986
else
987987
Arg = State.get(I.value(), onlyFirstLaneUsed(I.value()));
988-
if (isVectorIntrinsicWithOverloadTypeAtArg(VectorIntrinsicID, I.index()))
988+
if (isVectorIntrinsicWithOverloadTypeAtArg(VectorIntrinsicID, I.index(),
989+
State.TTI))
989990
TysForDecl.push_back(Arg->getType());
990991
Args.push_back(Arg);
991992
}

0 commit comments

Comments
 (0)