https://gcc.gnu.org/g:bda76b479dc8492183dbf73236ff30805674f6f5
commit r16-3548-gbda76b479dc8492183dbf73236ff30805674f6f5 Author: Jan Hubicka <hubi...@ucw.cz> Date: Wed Sep 3 18:00:42 2025 +0200 Dump profile_info in ipa-profile dump WPA currently does not print profile_info which might have been modified by profile merging logic. this patch adds dumping logic to ipa-profile pass. Bootstrapped/regtested x86_64-linux, comitted. gcc/ChangeLog: * ipa-profile.cc (ipa_profile): Dump profile_info. Diff: --- gcc/ipa-profile.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ipa-profile.cc b/gcc/ipa-profile.cc index c8b8529e38b7..d4725ce62626 100644 --- a/gcc/ipa-profile.cc +++ b/gcc/ipa-profile.cc @@ -773,7 +773,17 @@ ipa_profile (void) gcov_type threshold; if (dump_file) - dump_histogram (dump_file, histogram); + { + if (profile_info) + { + fprintf (dump_file, + "runs: %i sum_max: %" PRId64 " cutoff: %" PRId64"\n", + profile_info->runs, profile_info->sum_max, profile_info->cutoff); + fprintf (dump_file, "hot bb threshold: %" PRId64 "\n", + get_hot_bb_threshold ()); + } + dump_histogram (dump_file, histogram); + } for (i = 0; i < (int)histogram.length (); i++) { overall_time += ((widest_int)histogram[i]->count) * histogram[i]->time;