Skip to content

Commit 0d7b7f3

Browse files
committed
!fixup; Address comments.
1 parent ae371e5 commit 0d7b7f3

File tree

1 file changed

+7
-13
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+7
-13
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,12 +2334,10 @@ class VPReductionRecipe : public VPRecipeWithIRFlags {
23342334
VPReductionRecipe(const unsigned char SC, const RecurrenceDescriptor &R,
23352335
Instruction *I, ArrayRef<VPValue *> Operands,
23362336
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)
23412340
addOperand(CondOp);
2342-
}
23432341
}
23442342

23452343
/// For VPExtendedReductionRecipe.
@@ -2348,11 +2346,9 @@ class VPReductionRecipe : public VPRecipeWithIRFlags {
23482346
ArrayRef<VPValue *> Operands, VPValue *CondOp,
23492347
bool IsOrdered, bool IsNonNeg, DebugLoc DL)
23502348
: 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)
23542351
addOperand(CondOp);
2355-
}
23562352
}
23572353

23582354
/// For VPMulAccumulateReductionRecipe.
@@ -2361,11 +2357,9 @@ class VPReductionRecipe : public VPRecipeWithIRFlags {
23612357
ArrayRef<VPValue *> Operands, VPValue *CondOp,
23622358
bool IsOrdered, bool NUW, bool NSW, DebugLoc DL)
23632359
: 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)
23672362
addOperand(CondOp);
2368-
}
23692363
}
23702364

23712365
VPReductionRecipe(const unsigned char SC, const RecurrenceDescriptor &R,

0 commit comments

Comments
 (0)