@@ -1264,19 +1264,17 @@ class VPWidenRecipe : public VPRecipeWithIRFlags, public VPIRMetadata {
1264
1264
: VPRecipeWithIRFlags(VPDefOpcode, Operands, I), VPIRMetadata(I),
1265
1265
Opcode (I.getOpcode()) {}
1266
1266
1267
- template <typename IterT>
1268
- VPWidenRecipe (unsigned VPDefOpcode, unsigned Opcode, ArrayRef<IterT> Operands,
1269
- bool NUW, bool NSW, DebugLoc DL)
1267
+ VPWidenRecipe (unsigned VPDefOpcode, unsigned Opcode,
1268
+ ArrayRef<VPValue *> Operands, bool NUW, bool NSW, DebugLoc DL)
1270
1269
: VPRecipeWithIRFlags(VPDefOpcode, Operands, WrapFlagsTy(NUW, NSW), DL),
1271
1270
Opcode(Opcode) {}
1272
1271
1273
1272
public:
1274
1273
VPWidenRecipe (Instruction &I, ArrayRef<VPValue *> Operands)
1275
1274
: VPWidenRecipe(VPDef::VPWidenSC, I, Operands) {}
1276
1275
1277
- template <typename IterT>
1278
- VPWidenRecipe (unsigned Opcode, ArrayRef<IterT> Operands, bool NUW, bool NSW,
1279
- DebugLoc DL)
1276
+ VPWidenRecipe (unsigned Opcode, ArrayRef<VPValue *> Operands, bool NUW,
1277
+ bool NSW, DebugLoc DL)
1280
1278
: VPWidenRecipe(VPDef::VPWidenSC, Opcode, Operands, NUW, NSW, DL) {}
1281
1279
1282
1280
~VPWidenRecipe () override = default ;
@@ -2669,14 +2667,15 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
2669
2667
IsNonNeg = Ext0->isNonNeg ();
2670
2668
}
2671
2669
2672
- VPMulAccumulateReductionRecipe (VPReductionRecipe *R, VPWidenRecipe *Mul)
2670
+ VPMulAccumulateReductionRecipe (VPReductionRecipe *R, VPWidenRecipe *Mul,
2671
+ Type *ResultTy)
2673
2672
: VPReductionRecipe(
2674
2673
VPDef::VPMulAccumulateReductionSC, R->getRecurrenceKind (),
2675
2674
{R->getChainOp (), Mul->getOperand (0 ), Mul->getOperand (1 )},
2676
2675
R->getCondOp (), R->isOrdered(),
2677
2676
WrapFlagsTy(Mul->hasNoUnsignedWrap (), Mul->hasNoSignedWrap()),
2678
2677
R->getDebugLoc()),
2679
- ExtOp(Instruction::CastOps::CastOpsEnd) {
2678
+ ExtOp(Instruction::CastOps::CastOpsEnd), ResultTy(ResultTy) {
2680
2679
assert (RecurrenceDescriptor::getOpcode (getRecurrenceKind ()) ==
2681
2680
Instruction::Add &&
2682
2681
" The reduction instruction in MulAccumulateReductionRecipe must be "
0 commit comments