This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] Add memmove to value profiling (PR value-prof/35543).


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


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