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

Marek Sedláček via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 30 08:38:08 PST 2026


mark-sed wrote:

> With both solutions lit still fails at 1st RUN command. Is there any other option which controls unrolling?

@zibi2 That is odd to me, last option that can override this is `unroll-runtime-other-exit-predictable` which should be off by default, unless your downstream has changed that. You could also test it by adding to the run command:
```
; RUN: opt < %s -passes=loop-unroll -unroll-runtime=true -verify-dom-info -verify-loop-info -predictable-branch-threshold=99 -unroll-runtime-other-exit-predictable=false -S | FileCheck %s
```

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


More information about the llvm-commits mailing list