[llvm] [VPlan] Remove Def pointer from for VPSingleDefRecipes (NFC) (PR #195483)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 01:14:10 PDT 2026


================
@@ -3568,13 +3569,14 @@ class LLVM_ABI_FOR_TEST VPWidenMemoryRecipe : public VPRecipeBase,
 
 /// A recipe for widening load operations, using the address to load from and an
 /// optional mask.
-struct LLVM_ABI_FOR_TEST VPWidenLoadRecipe final : public VPWidenMemoryRecipe,
-                                                   public VPRecipeValue {
+struct LLVM_ABI_FOR_TEST VPWidenLoadRecipe final
+    : public VPWidenMemoryRecipe,
+      public VPStandaloneRecipeValue {
----------------
ayalz wrote:

> Hmm, maybe we can improve this by restructuring how we manage VPMemoryRecipe, but may be best done independently?

Agreed, better fix the "let widen load recipes be single def recipes" first? Perhaps by turning VPWidenMemoryRecipe into VPWidenMemoryAccessors (as in VPPhiAccessors), so that widen loads inherit from it and from SingleDefRecipe, and widen stores inherit from it and from recipe base?

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


More information about the llvm-commits mailing list