Skip to content

Commit 8d4b5e0

Browse files
committed
[NFC][SLP] Improved description of getShallowScore() and getScoreAtLevelRec()
Differential Revision: https://reviews.llvm.org/D124027
1 parent 800f263 commit 8d4b5e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,7 @@ class BoUpSLP {
11651165
static const int ScoreAllUserVectorized = 1;
11661166

11671167
/// \returns the score of placing \p V1 and \p V2 in consecutive lanes.
1168+
/// \p U1 and \p U2 are the users of \p V1 and \p V2.
11681169
/// Also, checks if \p V1 and \p V2 are compatible with instructions in \p
11691170
/// MainAltOps.
11701171
int getShallowScore(Value *V1, Value *V2, Instruction *U1, Instruction *U2,
@@ -1347,7 +1348,12 @@ class BoUpSLP {
13471348
}
13481349

13491350
/// Go through the operands of \p LHS and \p RHS recursively until \p
1350-
/// MaxLevel, and return the cummulative score. For example:
1351+
/// MaxLevel, and return the cummulative score. \p U1 and \p U2 are
1352+
/// the users of \p LHS and \p RHS (that is \p LHS and \p RHS are operands
1353+
/// of \p U1 and \p U2), except at the beginning of the recursion where
1354+
/// these are set to nullptr.
1355+
///
1356+
/// For example:
13511357
/// \verbatim
13521358
/// A[0] B[0] A[1] B[1] C[0] D[0] B[1] A[1]
13531359
/// \ / \ / \ / \ /

0 commit comments

Comments
 (0)