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] Speed-up indirect-call instrumentation


On 2017.06.09 at 14:17 +0200, Martin Liška wrote:
> Hello.
> 
> I discussed with Honza possibility to speed-up instrumentation that we do for
> indirect call target tracking. By direct emission of:
> 
>      if (__gcov_indirect_call_callee != NULL)
>        __gcov_indirect_call_profiler_v2 (profile_id, &current_function_decl);
> 
> we can save reduce # of execution of __gcov_indirect_call_profiler_v2 function.
> I measured that tramp3d (-O2 -fprofile-generate) goes from 7.1s to 6.3s.
> 
> Apart from that I slightly change probability for direct instrumentation of
> time profiler.
> 
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.

But it crashes on gcc.dg/pr78582.c with -O0.

-- 
Markus


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