https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417
--- Comment #20 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 38879 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38879&action=edit patch to remove memcpy inline expansion misalign limit This patch lifts the restrictions on memcpy to assignment folding WRT strict alignment platforms. As said for -Os this might not be optimal (but it's usually hard to tell given the cases we want the early folding there are followup optimization opportunities like promoting either source or destination to a register).