https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104985
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #8) > Created attachment 52695 [details] > gcc12-pr104985.patch > > As I can't reproduce, just an untested patch, which will not keep around > addresses of regno_reg_rtx array elements, but the regnos. > Yet another option would be to make where.m a rtx and save there the REGs. I think that's a good cleanup! Martin - does this fix the issue?