Skip to content

Commit 9fcb505

Browse files
ElvisWang123lukel97
authored andcommitted
!fixup, Update comments.
1 parent 4efc26b commit 9fcb505

File tree

1 file changed

+4
-3
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+4
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,9 +2261,10 @@ class VPReductionRecipe : public VPRecipeWithIRFlags {
22612261
IsConditional = true;
22622262
addOperand(CondOp);
22632263
}
2264-
// The inloop reduction may across multiple scalar instruction and the
2265-
// underlying instruction may not contains the corresponding flags. Set the
2266-
// flags explicit from the redurrence descriptor.
2264+
2265+
// In-loop reductions may comprise of multiple scalar instructions, and the
2266+
// underlying instruction may not contain the same flags as the
2267+
// recurrence descriptor, so set the flags explicitly.
22672268
if (isa<FPMathOperator>(I))
22682269
setFastMathFlags(R.getFastMathFlags());
22692270
}

0 commit comments

Comments
 (0)