aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2025-09-03 18:00:42 +0200
committerJan Hubicka <hubicka@ucw.cz>2025-09-03 18:00:42 +0200
commitbda76b479dc8492183dbf73236ff30805674f6f5 (patch)
treeeb767f6d027cfdeb227381e2aef31aeedb64aa7d
parent2c4fcab25fc0362359c87ab955b24c54aa41b46c (diff)
downloadgcc-bda76b479dc8492183dbf73236ff30805674f6f5.zip
gcc-bda76b479dc8492183dbf73236ff30805674f6f5.tar.gz
gcc-bda76b479dc8492183dbf73236ff30805674f6f5.tar.bz2
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.
-rw-r--r--gcc/ipa-profile.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ipa-profile.cc b/gcc/ipa-profile.cc
index c8b8529..d4725ce 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;