dmgreen added a comment. My understanding was that the LoopFlattening was where it was in the pipeline because that gave better results than putting it elsewhere. Any ideas why? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D110057/new/ https://reviews.llvm.org/D110057