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

Joel E. Denny via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 28 10:00:58 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 original loop entry,
----------------
jdenny-ornl wrote:

```suggestion
///   edge to 1. The \p EstimatedTripCount is relative to the original loop entry,
```

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


More information about the llvm-commits mailing list