[llvm] [NFC] update doc comment on `setLoopEstimatedTripCount` (PR #178091)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 28 09:57:06 PST 2026


================
@@ -359,7 +359,19 @@ getLoopEstimatedTripCount(Loop *L,
 /// - Set the branch weight metadata of \p L to reflect that \p L has an
 ///   estimated \p EstimatedTripCount iterations and has
 ///   \c *EstimatedLoopInvocationWeight exit weight through the loop's latch.
-/// - If \p EstimatedTripCount is zero, zero the branch weights.
+/// - If \p EstimatedTripCount is zero, set the backedge weight to 0 and exit
+/// edge to 1. The \EstimatedTripCount is relative to the function entry, but
----------------
mtrofin wrote:

s/function entry/loop entry, ptal

https://github.com/llvm/llvm-project/pull/178091


More information about the llvm-commits mailing list