hiraditya added a comment. My understanding is that a basic block with a PHI node should have first instruction as PHI Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132542/new/ https://reviews.llvm.org/D132542