Skip to content

Commit edbd31a

Browse files
committed
update uses in VPlanRecipes
- use the previously defined TTI
1 parent e1df78c commit edbd31a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,8 @@ void VPWidenIntrinsicRecipe::execute(VPTransformState &State) {
971971
// Some intrinsics have a scalar argument - don't replace it with a
972972
// vector.
973973
Value *Arg;
974-
if (isVectorIntrinsicWithScalarOpAtArg(VectorIntrinsicID, I.index()))
974+
if (isVectorIntrinsicWithScalarOpAtArg(VectorIntrinsicID, I.index(),
975+
State.TTI))
975976
Arg = State.get(I.value(), VPLane(0));
976977
else
977978
Arg = State.get(I.value(), onlyFirstLaneUsed(I.value()));

0 commit comments

Comments
 (0)