https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68261
--- Comment #6 from Geir Johansen <geir at cray dot com> --- (In reply to Andrew Pinski from comment #5) > (In reply to Geir Johansen from comment #4) > > (In reply to Andrew Pinski from comment #1) > > > Note glibc does provide a memcpy which is optimized for each target via > > > ifuncs. What version of glibc are you running. > > > > 2.11.3 > > That is a very old release which was released before most of the modern > v2/v3 were relased so no wonder you are having performance issues. Okay, tried GLIBC 2.19 and that version appears to have addressed the issue.