https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82580
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 42394 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42394&action=edit gcc8-pr82580-peephole2.patch Untested incremental patch with the 2 peepholes.