Introduce -fprofile-reproducibility and support it with TOP N.
authorMartin Liska <mliska@suse.cz>
Tue, 18 Feb 2020 13:28:22 +0000 (14:28 +0100)
committerMartin Liska <mliska@suse.cz>
Tue, 18 Feb 2020 13:28:22 +0000 (14:28 +0100)
commitea0b12523d0d9a9059b5173ce9653b92ddfb284f
tree76bb545094dd99e705bce5e82aa1456d7bcdd26e
parent0b2b45a68f48817e2310b12db3e03e648d4d2005
Introduce -fprofile-reproducibility and support it with TOP N.

PR ipa/92924
* common.opt: Add -fprofile-reproducibility.
* doc/invoke.texi: Document it.
* value-prof.c (dump_histogram_value):
Document and support behavior for counters[0]
being a negative value.
(get_nth_most_common_value): Handle negative
counters[0] in respect to flag_profile_reproducible.
PR ipa/92924
* libgcov-merge.c (merge_topn_values_set): Record
when a TOP N counter becomes invalid.  When merging
remove a smallest value if the space is needed.
gcc/ChangeLog
gcc/common.opt
gcc/coretypes.h
gcc/doc/invoke.texi
gcc/value-prof.c
libgcc/ChangeLog
libgcc/libgcov-merge.c