This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: optimize_size & built_in functions


> 
>   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...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]