Speed-up indirect-call instrumentation
authorMartin Liska <mliska@suse.cz>
Fri, 9 Jun 2017 12:54:53 +0000 (14:54 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 9 Jun 2017 12:54:53 +0000 (12:54 +0000)
commit4f751c5437988863e622fd8b3ff82ec65e281260
treee9a69c8567c8e3789ca0f89d0560978b67d5d97b
parentf05d82a711d37d7958b6eda223f7afedb3eb5837
Speed-up indirect-call instrumentation

2017-06-09  Martin Liska  <mliska@suse.cz>

* tree-profile.c (gimple_gen_ic_profiler): Update comment.
(gimple_gen_ic_func_profiler): Emit direct comparison
of __gcov_indirect_call_callee with NULL.
(gimple_gen_time_profiler): Change probability from
PROB_VERY_UNLIKELY to PROB_UNLIKELY.
2017-06-09  Martin Liska  <mliska@suse.cz>

* libgcov-profiler.c (__gcov_indirect_call_profiler_v2):
Reset __gcov_indirect_call_callee to NULL.

From-SVN: r249058
gcc/ChangeLog
gcc/tree-profile.c
libgcc/ChangeLog
libgcc/libgcov-profiler.c