[llvm] [VPlan] Impl VPlan-based pattern match for ExtendedRed and MulAccRed (PR #113903)

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 23 07:45:34 PDT 2025


================
@@ -706,6 +710,12 @@ class VPRecipeWithIRFlags : public VPSingleDefRecipe {
       : VPSingleDefRecipe(SC, Operands, DL), OpType(OperationType::DisjointOp),
         DisjointFlags(DisjointFlags) {}
 
+  template <typename IterT>
+  VPRecipeWithIRFlags(const unsigned char SC, IterT Operands,
+                      NonNegFlagsTy NonNegFlags, DebugLoc DL = {})
----------------
ElvisWang123 wrote:

I am not sure this is a good idea. We already have the constructor without nneg flags. Adding a new constructor with same behavior is a little bit weird to me.

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


More information about the llvm-commits mailing list