[llvm] [LoopUnroll] Use branch probability in multi-exit loop unrolling (PR #164799)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 23 09:20:27 PDT 2025


mtrofin wrote:

> Also runtime unrolling does not have access to BPI in the current state and has to be extracted and passed in from multiple parts.

OK, so that should be a refactoring.

> the incorrect state of BPI..

This is what troubles me: it sounds like you found a problem. If BPI is invalid, this means other consumers of it work off garbage information. Imho it would be worth understanding _why_ BPI is trashed. If you have repros, you could create an issue and get community help investigating, if time/priorities are a concern.

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


More information about the llvm-commits mailing list