Smart relaxation of TOP N counter.
authorMartin Liska <mliska@suse.cz>
Wed, 22 Jan 2020 11:08:11 +0000 (12:08 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 22 Jan 2020 11:08:11 +0000 (12:08 +0100)
commit5f32f9cf13f99f6295591927950aaf98aa8dba91
tree59ab45c6e2d886178d1ca9e17317ffdc1c043c31
parentf96af171bee93486896407ccad0e1e4dc200bc0c
Smart relaxation of TOP N counter.

PR tree-optimization/92924
* profile.c (compute_value_histograms): Divide
all counter values.
PR tree-optimization/92924
* libgcov-driver.c (prune_topn_counter): New.
(prune_counters): Likewise.
(dump_one_gcov): Prune a run-time counter.
* libgcov-profiler.c (__gcov_topn_values_profiler_body):
For a known value, add GCOV_TOPN_VALUES to value.
Otherwise, decrement all counters by one.
gcc/ChangeLog
gcc/profile.c
libgcc/ChangeLog
libgcc/libgcov-driver.c
libgcc/libgcov-profiler.c