[llvm] [VPlan] Introduce VPSingleDefRecipe. (PR #77023)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 7 10:58:30 PST 2024


================
@@ -883,14 +941,14 @@ class VPRecipeWithIRFlags : public VPRecipeBase {
 public:
   template <typename IterT>
   VPRecipeWithIRFlags(const unsigned char SC, IterT Operands, DebugLoc DL = {})
-      : VPRecipeBase(SC, Operands, DL) {
+      : VPSingleDefRecipe(SC, Operands, DL) {
     OpType = OperationType::Other;
     AllFlags = 0;
   }
 
   template <typename IterT>
   VPRecipeWithIRFlags(const unsigned char SC, IterT Operands, Instruction &I)
-      : VPRecipeWithIRFlags(SC, Operands, I.getDebugLoc()) {
+      : VPSingleDefRecipe(SC, Operands, &I, I.getDebugLoc()) {
----------------
ayalz wrote:

Is passing `&I` a general fix and/or specifically needed by this patch?

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


More information about the llvm-commits mailing list