https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117353
--- Comment #6 from Jeffrey A. Law <law at gcc dot gnu.org> --- So my approach would be to note the insn number, then set a conditional breakpoint in make_insn_raw (after it initializes INSN_UID in the new insn). The condition would be insn->u2.insn_uid == <insn number> or something close to that. That gives us a handle on precisely where it's created, then walk up the frames into the RISC-V code. As Robin noted, could easily be a missed can_create_pseudos_p test.