This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Optimize memset(x, ' ', 8) (take 2)
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] Optimize memset(x, ' ', 8) (take 2)
- From: Richard Henderson <rth at redhat dot com>
- Date: Fri, 1 Dec 2000 09:44:29 -0800
- Cc: ghazi at caip dot rutgers dot edu, gcc-patches at gcc dot gnu dot org
- References: <20001201183852.C552@sunsite.ms.mff.cuni.cz>
On Fri, Dec 01, 2000 at 06:38:53PM +0100, Jakub Jelinek wrote:
> * builtins.c (target_char_cast): New function.
> (expand_builtin_strchr): Use it.
> (expand_builtin_strrchr): Use it.
> (builtin_memset_read_str): New function.
> (expand_builtin_memset): Use target_char_cast.
> Try to optimize memset with second argument non-zero using
> store_by_pieces.
Ok.
r~