[llvm] [LoopUnroll] Rotate loop before unrolling inside of UnrollRuntimeLoopRemainder (PR #148243)

Marek Sedláček via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 9 06:38:25 PDT 2025


mark-sed wrote:

I will be closing this PR as this does not seem like the right way to go. We also found downstream that changing the order of the `ExitInfo` computation to after runtime unrolling is done, has an unintended side effect.
I have proposed a new profitability check in loop rotation from which runtime unrolling can now also benefit - https://github.com/llvm/llvm-project/pull/162654.

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


More information about the llvm-commits mailing list