https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112572
--- Comment #33 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This should be now hopefully latent after r14-6210-ge44ed92dbbe9d4e5c23f486cd2f77a6f9ee513c5, 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.