On 08/01/2018 12:14 PM, Jan Hubicka wrote:
> OK, thanks!
> We have other builtins that may fold into string function which we expand
> internally (str variants comes to mind) perhaps they could be instrumented,
> too.

Sure, as mentioned here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35543#c5,
these have reasonable inline expansion just for parameters of 0 or 1. I tried to
measure # of BUILT_IN_MEMCMP and BUILT_IN_STRNCMP with size <= 1 and there was 
only one occurrence in SPEC (I mean really hot enough call of the function that
will be potentially transformed).

Are there any other builtins I forgot to consider and can have reasonable
usage?

Martin

> 
> Honza

Reply via email to