[llvm] [VPlan] Expand VPWidenPointerInductionRecipe into separate recipes (PR #148274)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 10:08:30 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));
----------------
lukel97 wrote:
Oh I was looking at the wrong diff sorry, it turns out the existing tests also generated a vector. I will remove the onlyFirstLaneUsed check
https://github.com/llvm/llvm-project/pull/148274
More information about the llvm-commits
mailing list