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

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 24 10:58:02 PST 2024


================
@@ -2613,6 +2688,13 @@ class VPReductionRecipe : public VPSingleDefRecipe {
                           ArrayRef<VPValue *>({ChainOp, VecOp}), CondOp,
                           IsOrdered) {}
 
+  VPReductionRecipe(const RecurrenceDescriptor &R, VPValue *ChainOp,
+                    VPValue *VecOp, VPValue *CondOp, bool IsOrdered,
+                    DebugLoc DL = {})
+      : VPReductionRecipe(VPDef::VPReductionSC, R,
+                          ArrayRef<VPValue *>({ChainOp, VecOp}), CondOp,
----------------
alexey-bataev wrote:

```suggestion
                          {ChainOp, VecOp}, CondOp,
```
?

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


More information about the llvm-commits mailing list