File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments