[llvm] [VPlan] Model address separately. (PR #72164)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 28 12:58:07 PST 2023


================
@@ -397,6 +399,50 @@ Value *VPInstruction::generateInstruction(VPTransformState &State,
     Builder.GetInsertBlock()->getTerminator()->eraseFromParent();
     return CondBr;
   }
+  case VPInstruction::VectorPtr:
+  case VPInstruction::VectorPtrReverse: {
+    // Calculate the pointer for the specific unroll-part.
+    Value *PartPtr = nullptr;
+    bool IsReverse = getOpcode() == VPInstruction::VectorPtrReverse;
+    auto *MemR = cast<VPWidenMemoryInstructionRecipe>(*user_begin());
----------------
fhahn wrote:

updated to add a separate recipe, thanks!

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


More information about the llvm-commits mailing list