[llvm] [LV] Add test for WidenCall with mixed scalar-vector operands (PR #203092)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 16 13:49:44 PDT 2026
================
@@ -2061,17 +2061,12 @@ void VPWidenCallRecipe::execute(VPTransformState &State) {
FunctionType *VFTy = Variant->getFunctionType();
// Add return type if intrinsic is overloaded on it.
SmallVector<Value *, 4> Args;
- for (const auto &I : enumerate(args())) {
- Value *Arg;
+ for (const auto &[Idx, Op] : enumerate(args()))
// Some vectorized function variants may also take a scalar argument,
// e.g. linear parameters for pointers. This needs to be the scalar value
// from the start of the respective part when interleaving.
- if (!VFTy->getParamType(I.index())->isVectorTy())
- Arg = State.get(I.value(), VPLane(0));
- else
- Arg = State.get(I.value(), usesFirstLaneOnly(I.value()));
- Args.push_back(Arg);
- }
+ Args.push_back(State.get(Op, !VFTy->getParamType(Idx)->isVectorTy() ||
----------------
artagnon wrote:
Okay, let's just commit the test then.
https://github.com/llvm/llvm-project/pull/203092
More information about the llvm-commits
mailing list