@@ -2247,10 +2247,9 @@ class VPReductionRecipe : public VPRecipeWithIRFlags {
22472247
22482248protected:
22492249 VPReductionRecipe (const unsigned char SC, const RecurrenceDescriptor &R,
2250- FastMathFlags FMF, Instruction *I,
2251- ArrayRef<VPValue *> Operands, VPValue *CondOp,
2252- bool IsOrdered, DebugLoc DL)
2253- : VPRecipeWithIRFlags(SC, Operands, FMF, DL), RdxDesc(R),
2250+ Instruction *I, ArrayRef<VPValue *> Operands,
2251+ VPValue *CondOp, bool IsOrdered, DebugLoc DL)
2252+ : VPRecipeWithIRFlags(SC, Operands, R.getFastMathFlags(), DL), RdxDesc(R),
22542253 IsOrdered (IsOrdered) {
22552254 if (CondOp) {
22562255 IsConditional = true ;
@@ -2263,7 +2262,7 @@ class VPReductionRecipe : public VPRecipeWithIRFlags {
22632262 VPReductionRecipe (const RecurrenceDescriptor &R, Instruction *I,
22642263 VPValue *ChainOp, VPValue *VecOp, VPValue *CondOp,
22652264 bool IsOrdered, DebugLoc DL = {})
2266- : VPReductionRecipe(VPDef::VPReductionSC, R, R.getFastMathFlags(), I,
2265+ : VPReductionRecipe(VPDef::VPReductionSC, R, I,
22672266 ArrayRef<VPValue *>({ChainOp, VecOp}), CondOp,
22682267 IsOrdered, DL) {}
22692268
@@ -2326,7 +2325,6 @@ class VPReductionEVLRecipe : public VPReductionRecipe {
23262325 DebugLoc DL = {})
23272326 : VPReductionRecipe(
23282327 VPDef::VPReductionEVLSC, R.getRecurrenceDescriptor(),
2329- R.getFastMathFlags(),
23302328 cast_or_null<Instruction>(R.getUnderlyingValue()),
23312329 ArrayRef<VPValue *>({R.getChainOp (), R.getVecOp (), &EVL}), CondOp,
23322330 R.isOrdered(), DL) {}
0 commit comments