lebedev.ri added a comment. Currently we run LICM right after loop-rotate What about running it either before, or before and after? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99204/new/ https://reviews.llvm.org/D99204