This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Optimize memmove (x, y, 1)
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 13 Sep 2004 11:56:38 -0700
- Subject: Re: [PATCH] Optimize memmove (x, y, 1)
- References: <20040913180810.GL31909@devserv.devel.redhat.com>
On Mon, Sep 13, 2004 at 02:08:10PM -0400, Jakub Jelinek wrote:
> * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
> into memcpy (x, y, 1) if memcpy can be expanded inline.
> * gcc.c-torture/execute/builtins/memmove.c (main_test): Formatting.
> Add test for memmove (x, y, 1) optimization.
Ok.
r~