[llvm] [LV] Add support for widening loads/stores to a VF multiple (PR #217670)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 06:19:23 PDT 2026


================
@@ -3811,6 +3817,12 @@ class LLVM_ABI_FOR_TEST VPWidenMemoryRecipe : public VPIRMetadata {
   InstructionCost computeCost(ElementCount VF, VPCostContext &Ctx) const;
 
   Instruction &getIngredient() const { return Ingredient; }
+
+  /// Set the VF multiple for this memory operation.
+  void setVFMultiple(unsigned VFMultiple) { this->VFMultiple = VFMultiple; }
+
+  /// Returns the VF multiple of this memory operation.
+  unsigned getVFMultiple() const { return VFMultiple; }
----------------
MacDue wrote:

Thanks for the suggestion :+1: I think adding `VFMultipleLoad/Store` works quite nicely. 

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


More information about the llvm-commits mailing list