[llvm] 37dcd2c - [VPlan] Remove unused recipe constructor overloads (NFC) (#230857)

via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 03:12:54 PDT 2026


Author: Florian Hahn
Date: 2026-10-11T10:12:49Z
New Revision: 37dcd2caf7a6d974eaa9ed1b8b62b95dc8c4d062

URL: https://github.com/llvm/llvm-project/commit/37dcd2caf7a6d974eaa9ed1b8b62b95dc8c4d062
DIFF: https://github.com/llvm/llvm-project/commit/37dcd2caf7a6d974eaa9ed1b8b62b95dc8c4d062.diff

LOG: [VPlan] Remove unused recipe constructor overloads (NFC) (#230857)

Remove the VPSingleDefRecipe constructors without a result type (taking
only a DebugLoc, or an underlying Value and a DebugLoc) and the
VPRecipeWithIRFlags constructor without a result type. All recipes now
pass an explicit result type, so these overloads have no users.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlan.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 5a62fd00f4b29..2137f576233d5 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -610,14 +610,6 @@ LLVM_ABI Type *computeScalarTypeForInstruction(unsigned Opcode,
 class LLVM_ABI_FOR_TEST VPSingleDefRecipe : public VPRecipeBase,
                                             public VPSingleDefValue {
 public:
-  VPSingleDefRecipe(VPRecipeTy SC, ArrayRef<VPValue *> Operands,
-                    DebugLoc DL = DebugLoc::getUnknown())
-      : VPRecipeBase(SC, Operands, DL), VPSingleDefValue(this) {}
-
-  VPSingleDefRecipe(VPRecipeTy SC, ArrayRef<VPValue *> Operands, Value *UV,
-                    DebugLoc DL = DebugLoc::getUnknown())
-      : VPRecipeBase(SC, Operands, DL), VPSingleDefValue(this, UV) {}
-
   VPSingleDefRecipe(VPRecipeTy SC, ArrayRef<VPValue *> Operands, Type *ResultTy,
                     Value *UV = nullptr, DebugLoc DL = DebugLoc::getUnknown())
       : VPRecipeBase(SC, Operands, DL), VPSingleDefValue(this, UV, ResultTy) {}
@@ -1114,11 +1106,6 @@ static_assert(sizeof(VPIRFlags) <= 3, "VPIRFlags should not grow");
 /// A pure-virtual common base class for recipes defining a single VPValue and
 /// using IR flags.
 struct VPRecipeWithIRFlags : public VPSingleDefRecipe, public VPIRFlags {
-  VPRecipeWithIRFlags(VPRecipeTy SC, ArrayRef<VPValue *> Operands,
-                      const VPIRFlags &Flags,
-                      DebugLoc DL = DebugLoc::getUnknown())
-      : VPSingleDefRecipe(SC, Operands, DL), VPIRFlags(Flags) {}
-
   VPRecipeWithIRFlags(VPRecipeTy SC, ArrayRef<VPValue *> Operands,
                       Type *ResultTy, const VPIRFlags &Flags,
                       DebugLoc DL = DebugLoc::getUnknown())


        


More information about the llvm-commits mailing list