[llvm] [NFC][Scalarizer][TargetTransformInfo] Add `isVectorIntrinsicWithOverloadTypeAtArg` api (PR #114849)
Finn Plummer via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 4 10:58:59 PST 2024
================
@@ -727,7 +727,8 @@ bool ScalarizerVisitor::splitCall(CallInst &CI) {
SmallVector<llvm::Type *, 3> Tys;
// Add return type if intrinsic is overloaded on it.
- if (isVectorIntrinsicWithOverloadTypeAtArg(ID, -1))
+ if (TTI->isVectorIntrinsicWithOverloadTypeAtArg(
----------------
inbelic wrote:
I agree, the problem is that the default behaviour is to only return `true` for `OpScalarIdx == -1`. Which in the `asdouble` case we don't want to add the `double` return type, so `||` doesn't work and when we want to add any other different index `&&` won't work.
https://github.com/llvm/llvm-project/pull/114849
More information about the llvm-commits
mailing list