https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80546
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 43536 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43536&action=edit gcc8-pr80546.patch The following completely untested patch fixes this. Probably other mov patterns need inspection too. Or shall IRA handle the noop moves itself?