Skip to content

Commit f547ea3

Browse files
committed
LU: refine comment
1 parent 62067bf commit f547ea3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/Transforms/Utils/LoopUtils.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ void addStringMetadataToLoop(Loop *TheLoop, const char *MDString,
319319
/// In addition if \p EstimatedLoopInvocationWeight is not null it is
320320
/// initialized with weight of loop's latch leading to the exit.
321321
/// Returns a valid positive trip count, or std::nullopt when a meaningful
322-
/// estimate cannot be made (including when the trip count would overflow).
322+
/// estimate cannot be made (including when the trip count wouldn't fit in the
323+
/// result type).
323324
std::optional<unsigned>
324325
getLoopEstimatedTripCount(Loop *L,
325326
unsigned *EstimatedLoopInvocationWeight = nullptr);

0 commit comments

Comments
 (0)