[PATCH] Additional builtin memset optimization
Richard Henderson
rth@redhat.com
Mon Apr 22 15:38:00 GMT 2002
On Sun, Apr 21, 2002 at 04:39:25PM -0600, Roger Sayle wrote:
> * builtins.c (builtin_memset_gen_str): New function.
> (expand_builtin_memset): Optimize the case of constant
> length, but unknown value.
Ok.
> * gcc.c-torture/execute/string-opt-17.c: New test case.
I'd suggest a test for correctness instead, since you're
allowing memset to pop through for len >= 2.
r~
More information about the Gcc-patches
mailing list