@@ -1310,19 +1310,17 @@ class VPWidenRecipe : public VPRecipeWithIRFlags, public VPIRMetadata {
13101310 : VPRecipeWithIRFlags(VPDefOpcode, Operands, I), VPIRMetadata(I),
13111311 Opcode (I.getOpcode()) {}
13121312
1313- template <typename IterT>
1314- VPWidenRecipe (unsigned VPDefOpcode, unsigned Opcode, ArrayRef<IterT> Operands,
1315- bool NUW, bool NSW, DebugLoc DL)
1313+ VPWidenRecipe (unsigned VPDefOpcode, unsigned Opcode,
1314+ ArrayRef<VPValue *> Operands, bool NUW, bool NSW, DebugLoc DL)
13161315 : VPRecipeWithIRFlags(VPDefOpcode, Operands, WrapFlagsTy(NUW, NSW), DL),
13171316 Opcode(Opcode) {}
13181317
13191318public:
13201319 VPWidenRecipe (Instruction &I, ArrayRef<VPValue *> Operands)
13211320 : VPWidenRecipe(VPDef::VPWidenSC, I, Operands) {}
13221321
1323- template <typename IterT>
1324- VPWidenRecipe (unsigned Opcode, ArrayRef<IterT> Operands, bool NUW, bool NSW,
1325- DebugLoc DL)
1322+ VPWidenRecipe (unsigned Opcode, ArrayRef<VPValue *> Operands, bool NUW,
1323+ bool NSW, DebugLoc DL)
13261324 : VPWidenRecipe(VPDef::VPWidenSC, Opcode, Operands, NUW, NSW, DL) {}
13271325
13281326 ~VPWidenRecipe () override = default ;
@@ -2725,14 +2723,15 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
27252723 IsNonNeg = Ext0->isNonNeg ();
27262724 }
27272725
2728- VPMulAccumulateReductionRecipe (VPReductionRecipe *R, VPWidenRecipe *Mul)
2726+ VPMulAccumulateReductionRecipe (VPReductionRecipe *R, VPWidenRecipe *Mul,
2727+ Type *ResultTy)
27292728 : VPReductionRecipe(
27302729 VPDef::VPMulAccumulateReductionSC, R->getRecurrenceKind (),
27312730 {R->getChainOp (), Mul->getOperand (0 ), Mul->getOperand (1 )},
27322731 R->getCondOp (), R->isOrdered(),
27332732 WrapFlagsTy(Mul->hasNoUnsignedWrap (), Mul->hasNoSignedWrap()),
27342733 R->getDebugLoc()),
2735- ExtOp(Instruction::CastOps::CastOpsEnd) {
2734+ ExtOp(Instruction::CastOps::CastOpsEnd), ResultTy(ResultTy) {
27362735 assert (RecurrenceDescriptor::getOpcode (getRecurrenceKind ()) ==
27372736 Instruction::Add &&
27382737 " The reduction instruction in MulAccumulateReductionRecipe must be "
0 commit comments