https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112760
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This is now latent, we need to decide about the updating and usability of REG_UNUSED notes, but after moving the pass it shouldn't trigger on this testcase.