This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/70140] Inefficient expansion of __builtin_mempcpy
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 14 Jul 2017 15:21:13 +0000
- Subject: [Bug middle-end/70140] Inefficient expansion of __builtin_mempcpy
- Auto-submitted: auto-generated
- References: <bug-70140-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70140
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
CC| |msebor at gcc dot gnu.org
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
In r249278 GCC was changed to transform early on calls to bcmp, bcopy and bzero
to memcmp, memcpy, and memset. The main motivation was to simplify their
handling and ensure they are optimized equivalently by the rest of the
compiler. (This was suggested here:
https://gcc.gnu.org/ml/gcc-patches/2017-06/msg00114.html). It might make sense
to take the same approach with mempcpy.
(The second part of r249278, i.e., the removal of the bcmp, bcopy and bzero
handling, is yet to be done.)