[llvm] [VPlan] Change parent of VPReductionRecipe to VPRecipeWithIRFlags. NFC (PR #130881)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 16 19:49:54 PDT 2025


================
@@ -2295,21 +2297,23 @@ class VPReductionRecipe : public VPSingleDefRecipe {
 
 protected:
   VPReductionRecipe(const unsigned char SC, const RecurrenceDescriptor &R,
-                    Instruction *I, ArrayRef<VPValue *> Operands,
-                    VPValue *CondOp, bool IsOrdered, DebugLoc DL)
-      : VPSingleDefRecipe(SC, Operands, I, DL), RdxDesc(R),
+                    FastMathFlags FMF, Instruction *I,
----------------
lukel97 wrote:

Just a heads up, I think you could omit the FMF constructor here and just take it from R.getFastMathFlags(), but I would need to add it back anyway in #131300 so this is easier for me

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


More information about the llvm-commits mailing list