https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116601
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The bug is in optimize_memcpy or maybe after the call to optimize_memcpy. It has been a latent issue since r7-5443-g7b45d0dfeb5f85 .