[llvm] [EarlyIfConversion] Limit critical-path growth for strongly biased branches (PR #228709)

Dávid Bolvanský via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 4 04:41:59 PDT 2026


davidbolvansky wrote:

Sure, here it is: [microbenchmark](https://gist.github.com/davidbolvansky/18980b87c9a93abe1654910fa018d3e0). I reduced it from the bit-reading loop in zstd and included the patch I tried and a script to run both versions.

There are no branch weights in the IR. The 50/50 and 99.9% numbers are just the input distributions I tested. I haven’t run llvm-test-suite yet, so I don’t have broader results to share.

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


More information about the llvm-commits mailing list