Skip to content

Commit 772eb07

Browse files
committed
[VPlan] Clarify comments after #145340 (NFC).
Adjust comments as suggested post-commit for #145340.
1 parent aeec2c6 commit 772eb07

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,8 @@ class VPInstruction : public VPRecipeWithIRFlags,
943943
/// Creates a fixed-width vector containing all operands. The number of
944944
/// operands matches the vector element count.
945945
BuildVector,
946+
/// Compute the final result of a AnyOf reduction with select(cmp(),x,y),
947+
/// where one of (x,y) is loop invariant, and both x and y are integer type.
946948
ComputeAnyOfResult,
947949
ComputeFindLastIVResult,
948950
ComputeReductionResult,
@@ -960,7 +962,7 @@ class VPInstruction : public VPRecipeWithIRFlags,
960962
// for all lanes, depending on its uses).
961963
PtrAdd,
962964
// Returns a scalar boolean value, which is true if any lane of its
963-
// (boolean) vector operand is true. It produces the reduced value across
965+
// (boolean) vector operands is true. It produces the reduced value across
964966
// all unrolled iterations. Unrolling will add all copies of its original
965967
// operand as additional operands.
966968
AnyOf,

0 commit comments

Comments
 (0)