https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93002
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 47525 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47525&action=edit gcc10-pr93002.patch Untested patch doing this the peephole2 way.