[PATCH] Clean up value-prof.c a bit.
Martin Liška
mliska@suse.cz
Fri Aug 16 11:17:00 GMT 2019
Hi.
The patch is a small clean up.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
Ready to be installed?
Thanks,
Martin
gcc/ChangeLog:
2019-08-16 Martin Liska <mliska@suse.cz>
* profile.c (instrument_values): Do not set
0 as last argument.
* tree-profile.c (gimple_gen_interval_profiler): Remove
last argument.
(gimple_gen_pow2_profiler): Likewise.
(gimple_gen_topn_values_profiler): Likewise.
(gimple_gen_ic_profiler): Likewise.
(gimple_gen_time_profiler): Likewise.
(gimple_gen_average_profiler): Likewise.
(gimple_gen_ior_profiler): Likewise.
* value-prof.c (dump_histogram_value): Use default
in switch statement instead of HIST_TYPE_MAX.
(stream_in_histogram_value): Likewise.
(gimple_duplicate_stmt_histograms): Do not
use NULL for implicitly set arguments.
(gimple_divmod_values_to_profile): Do not use
reserve+quick_push.
(gimple_indirect_call_to_profile): Likewise.
(gimple_find_values_to_profile): Use implicit
function call arguments.
* value-prof.h (gimple_alloc_histogram_value):
Set default values.
(gimple_gen_interval_profiler): Remove last argument.
(gimple_gen_pow2_profiler): Likewise.
(gimple_gen_topn_values_profiler): Likewise.
(gimple_gen_ic_profiler): Likewise.
(gimple_gen_time_profiler): Likewise.
(gimple_gen_average_profiler): Likewise.
(gimple_gen_ior_profiler): Likewise.
---
gcc/profile.c | 14 +++++++-------
gcc/tree-profile.c | 36 +++++++++++++++++-------------------
gcc/value-prof.c | 36 ++++++++++++++++--------------------
gcc/value-prof.h | 18 +++++++++---------
4 files changed, 49 insertions(+), 55 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Clean-up-value-prof.c-a-bit.patch
Type: text/x-patch
Size: 12384 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20190816/99061d3b/attachment.bin>
More information about the Binutils
mailing list