[Bug middle-end/70140] Inefficient expansion of __builtin_mempcpy
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 14 15:21:00 GMT 2017
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.)
More information about the Gcc-bugs
mailing list