This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: optimize_size & built_in functions
- To: law at cygnus dot com
- Subject: Re: PATCH: optimize_size & built_in functions
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Thu, 14 May 1998 09:27:34 +0100 (BST)
- Cc: jfc at mit dot edu, pcg at goof dot com, egcs at cygnus dot com
>
> In message <199805132114.RAA22935@contents-vnder-pressvre.MIT.EDU>you write:
> >
> > ffs can be small. memset and memcpy are likely to be small if the
> > size argument is a small power of 2 (or on RS/6000, if the size
> > argument is any small constant).
> Exactly. I'd prefer to see us throttle how many instructions we're
> willing to generate for the builtins before we punt to the libcall.
Shouldn't this be done by an predicate for the strlensi define_expand in
i386.md ?
I think you could just use ! optimize_size for all expanders of functions
that get a bit longish...