[llvm] [VPlan] Expand VPWidenPointerInductionRecipe into separate recipes (PR #148274)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 17 04:32:50 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:

Done in 0315ec12d33e431e4d019cca2361f7964755354e

https://github.com/llvm/llvm-project/pull/148274


More information about the llvm-commits mailing list