Make mempcpy more optimal (PR middle-end/70140).
authorMartin Liska <mliska@suse.cz>
Tue, 1 Aug 2017 11:59:27 +0000 (13:59 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 1 Aug 2017 11:59:27 +0000 (11:59 +0000)
commit98b7180c1595e5233daf91cfff176d78ad973476
treec1b7959e8f8c0ba1b7107dcd8f8d49f9ddac3dd6
parent59ba84d882e270f5fb5a7be4f287b352c0935a14
Make mempcpy more optimal (PR middle-end/70140).

2017-08-01  Martin Liska  <mliska@suse.cz>

PR middle-end/70140
* gcc.dg/string-opt-1.c: Adjust test-case to scan for memcpy.
2017-08-01  Martin Liska  <mliska@suse.cz>

PR middle-end/70140
* builtins.c (expand_builtin_memcpy_args): Remove.
(expand_builtin_memcpy): Call newly added function
expand_builtin_memory_copy_args.
(expand_builtin_memcpy_with_bounds): Likewise.
(expand_builtin_mempcpy): Remove last argument.
(expand_builtin_mempcpy_with_bounds): Likewise.
(expand_builtin_memory_copy_args): New function created from
expand_builtin_mempcpy_args with small modifications.
(expand_builtin_mempcpy_args): Remove.
(expand_builtin_stpcpy): Remove unused argument.
(expand_builtin): Likewise.
(expand_builtin_with_bounds): Likewise.

From-SVN: r250771
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/string-opt-1.c