[llvm] [VPlan] Expand VPWidenPointerInductionRecipe into separate recipes (PR #148274)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 07:57:10 PDT 2025
================
@@ -854,6 +856,11 @@ Value *VPInstruction::generate(VPTransformState &State) {
Value *Addend = State.get(getOperand(1), VPLane(0));
return Builder.CreatePtrAdd(Ptr, Addend, Name, getGEPNoWrapFlags());
}
+ case VPInstruction::WidePtrAdd: {
+ Value *Ptr = State.get(getOperand(0), true);
+ Value *Addend = State.get(getOperand(1), vputils::onlyFirstLaneUsed(this));
----------------
fhahn wrote:
Do we need to check for firstLaneUsed here? Ideally WidePtrAdd wouldn't be used if the only a single lane is needed
https://github.com/llvm/llvm-project/pull/148274
More information about the llvm-commits
mailing list