[libc-commits] [PATCH] D101296: [libc] Use different alignment for memcpy between ARM and x86.
Guillaume Chatelet via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Apr 26 07:34:34 PDT 2021
gchatelet created this revision.
gchatelet added a reviewer: sivachandra.
Herald added subscribers: libc-commits, ecnelises, tschuett, pengfei, kristof.beyls.
Herald added a project: libc-project.
gchatelet requested review of this revision.
Aligned copy used to be 'destination aligned' for x86 but this decision was reverted in D93457 <https://reviews.llvm.org/D93457> where we noticed that it was better for ARM to be 'source aligned'.
More benchmarking confirmed that it can be up to 30% faster to align copy to destination for x86. This Patch offers both implementations and switches x86 back to destination aligned.
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6587 bytes
Desc: not available
More information about the libc-commits