[llvm] [BOLT][RISCV] Preserve debug metadata when rewriting call pairs (PR #221116)

Alexander Wilson via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 04:51:06 PDT 2026


rdtscp wrote:

> Now I have remove this NOP instruction in #221965. I think it makes more sense to remove this NOP, rather than adding more support for this inserted NOP.


@Thrrreeee Agree on this direction, but I think #221965 won't solve the DWARF issue by itself. The debug metadata on the original AUIPC still needs moved to this temporary NOP, and then when the NOP is removed in #221965 we need to properly move the metadata from `NOP + PseudoCALL` back to the new `AUIPC + JALR`

https://github.com/llvm/llvm-project/pull/221116


More information about the llvm-commits mailing list