efriedma added a comment. The patch looks right. Now that you know what the issue is, do you think you could construct an MIR testcase? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D80047/new/ https://reviews.llvm.org/D80047