hiraditya added a comment. An interesting case to explore: https://bugs.llvm.org/show_bug.cgi?id=27360 LLVM does not peel/unroll loops with multiple exits. With this loop rotation this should be possible. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D22630/new/ https://reviews.llvm.org/D22630