mark-sed wrote: I have submitted PR with the alternative approach of rotation inside of `UnrollRuntimeLoopRemainder` (as discussed above). It can be found here: https://github.com/llvm/llvm-project/pull/148243 https://github.com/llvm/llvm-project/pull/146540