https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79593
--- Comment #23 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 45368 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45368&action=edit gcc9-pr79593.patch This patch solves that with a peephole2 (untested so far). I agree it would be better to solve generally in some pass, but no pass is a good fit for that right now.