efriedma added a comment. Checking LoopInfo is a bad idea; even if LoopInfo doesn't detect any loops, there can still be CFG cycles. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D81004/new/ https://reviews.llvm.org/D81004