@@ -1310,19 +1310,17 @@ class VPWidenRecipe : public VPRecipeWithIRFlags, public VPIRMetadata {
1310
1310
: VPRecipeWithIRFlags(VPDefOpcode, Operands, I), VPIRMetadata(I),
1311
1311
Opcode (I.getOpcode()) {}
1312
1312
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)
1316
1315
: VPRecipeWithIRFlags(VPDefOpcode, Operands, WrapFlagsTy(NUW, NSW), DL),
1317
1316
Opcode(Opcode) {}
1318
1317
1319
1318
public:
1320
1319
VPWidenRecipe (Instruction &I, ArrayRef<VPValue *> Operands)
1321
1320
: VPWidenRecipe(VPDef::VPWidenSC, I, Operands) {}
1322
1321
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)
1326
1324
: VPWidenRecipe(VPDef::VPWidenSC, Opcode, Operands, NUW, NSW, DL) {}
1327
1325
1328
1326
~VPWidenRecipe () override = default ;
@@ -2725,14 +2723,15 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
2725
2723
IsNonNeg = Ext0->isNonNeg ();
2726
2724
}
2727
2725
2728
- VPMulAccumulateReductionRecipe (VPReductionRecipe *R, VPWidenRecipe *Mul)
2726
+ VPMulAccumulateReductionRecipe (VPReductionRecipe *R, VPWidenRecipe *Mul,
2727
+ Type *ResultTy)
2729
2728
: VPReductionRecipe(
2730
2729
VPDef::VPMulAccumulateReductionSC, R->getRecurrenceKind (),
2731
2730
{R->getChainOp (), Mul->getOperand (0 ), Mul->getOperand (1 )},
2732
2731
R->getCondOp (), R->isOrdered(),
2733
2732
WrapFlagsTy(Mul->hasNoUnsignedWrap (), Mul->hasNoSignedWrap()),
2734
2733
R->getDebugLoc()),
2735
- ExtOp(Instruction::CastOps::CastOpsEnd) {
2734
+ ExtOp(Instruction::CastOps::CastOpsEnd), ResultTy(ResultTy) {
2736
2735
assert (RecurrenceDescriptor::getOpcode (getRecurrenceKind ()) ==
2737
2736
Instruction::Add &&
2738
2737
" The reduction instruction in MulAccumulateReductionRecipe must be "
0 commit comments