================ @@ -358,6 +358,9 @@ bool AMDGPUAsmPrinter::doInitialization(Module &M) { report_fatal_error("Unexpected code object version"); } } + + RI.reset(); ---------------- arsenm wrote: Do in doFinalization? https://github.com/llvm/llvm-project/pull/110818