builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
authorAaron Sawdey <acsawdey@linux.ibm.com>
Wed, 2 Oct 2019 14:23:51 +0000 (14:23 +0000)
committerAaron Sawdey <acsawdey@gcc.gnu.org>
Wed, 2 Oct 2019 14:23:51 +0000 (09:23 -0500)
commit03a9b90aa6df28dde083efd17e8b7ae76b943fe7
treecf2c7debb8c890c231f2b9b46d142d78e10e2f4c
parent629387a6586a753166f5cf53d587026a34362523
builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.

2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>

* builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
(expand_builtin_memcpy): Use might_overlap parm.
(expand_builtin_mempcpy_args): Use might_overlap parm.
(expand_builtin_memmove): Call expand_builtin_memory_copy_args.
(expand_builtin_memory_copy_args): Add might_overlap parm.
* expr.c (emit_block_move_via_cpymem): Rename to
emit_block_move_via_pattern, add might_overlap parm, use cpymem
or movmem optab as appropriate.
(emit_block_move_hints): Add might_overlap parm, do the right
thing for might_overlap==true.
* expr.h (emit_block_move_hints): Update prototype.

From-SVN: r276461
gcc/ChangeLog
gcc/builtins.c
gcc/expr.c
gcc/expr.h