https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89186
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 45595 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45595&action=edit gcc9-pr89186.patch Untested fix. If we can come up with a testcase where the memcmp needs to be called on code that is not dead like in this testcase, it would be wrong-code.