@@ -2334,12 +2334,10 @@ class VPReductionRecipe : public VPRecipeWithIRFlags {
2334
2334
VPReductionRecipe (const unsigned char SC, const RecurrenceDescriptor &R,
2335
2335
Instruction *I, ArrayRef<VPValue *> Operands,
2336
2336
VPValue *CondOp, bool IsOrdered)
2337
- : VPRecipeWithIRFlags(SC, Operands, *I), RdxDesc(R),
2338
- IsOrdered (IsOrdered) {
2339
- if (CondOp) {
2340
- IsConditional = true ;
2337
+ : VPRecipeWithIRFlags(SC, Operands, *I), RdxDesc(R), IsOrdered(IsOrdered),
2338
+ IsConditional (CondOp) {
2339
+ if (CondOp)
2341
2340
addOperand (CondOp);
2342
- }
2343
2341
}
2344
2342
2345
2343
// / For VPExtendedReductionRecipe.
@@ -2348,11 +2346,9 @@ class VPReductionRecipe : public VPRecipeWithIRFlags {
2348
2346
ArrayRef<VPValue *> Operands, VPValue *CondOp,
2349
2347
bool IsOrdered, bool IsNonNeg, DebugLoc DL)
2350
2348
: VPRecipeWithIRFlags(SC, Operands, NonNegFlagsTy(IsNonNeg), DL),
2351
- RdxDesc(R), IsOrdered(IsOrdered) {
2352
- if (CondOp) {
2353
- IsConditional = true ;
2349
+ RdxDesc(R), IsOrdered(IsOrdered), IsConditional(CondOp) {
2350
+ if (CondOp)
2354
2351
addOperand (CondOp);
2355
- }
2356
2352
}
2357
2353
2358
2354
// / For VPMulAccumulateReductionRecipe.
@@ -2361,11 +2357,9 @@ class VPReductionRecipe : public VPRecipeWithIRFlags {
2361
2357
ArrayRef<VPValue *> Operands, VPValue *CondOp,
2362
2358
bool IsOrdered, bool NUW, bool NSW, DebugLoc DL)
2363
2359
: VPRecipeWithIRFlags(SC, Operands, WrapFlagsTy(NUW, NSW), DL),
2364
- RdxDesc(R), IsOrdered(IsOrdered) {
2365
- if (CondOp) {
2366
- IsConditional = true ;
2360
+ RdxDesc(R), IsOrdered(IsOrdered), IsConditional(CondOp) {
2361
+ if (CondOp)
2367
2362
addOperand (CondOp);
2368
- }
2369
2363
}
2370
2364
2371
2365
VPReductionRecipe (const unsigned char SC, const RecurrenceDescriptor &R,
0 commit comments