https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70245
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Ah, you're right, sorry for blindly CCing you after bisecting to a RA related commit. The peephole would be fine if replace_rtx worked; unfortunately it does pointer comparison (x == from) rather than rtx_equal_p.