[llvm] [LoopPeel] Fix branch weights' effect on block frequencies (PR #128785)

Joel E. Denny via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 15 08:03:44 PDT 2025


================
@@ -850,27 +852,35 @@ llvm::getLoopEstimatedTripCount(Loop *L,
             getEstimatedTripCount(LatchBranch, L, ExitWeight)) {
       if (EstimatedLoopInvocationWeight)
         *EstimatedLoopInvocationWeight = ExitWeight;
+      if (auto EstimatedTripCount =
----------------
jdenny-ornl wrote:

I am addressing these suggestions in PR #148758.  I'll leave this PR as is for comparison until it looks like people are generally happy with that PR's approach.

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


More information about the llvm-commits mailing list