aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfg.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2002-05-23 19:46:46 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2002-05-23 17:46:46 +0000
commit0f72964f10dd338c59e1ea8e8eee3a966154540d (patch)
treec2cf24922ac7b3b5134509953d740e053db3ae0f /gcc/cfg.c
parentc863f8c2fa41625ae9e770d051146caec882bf36 (diff)
downloadgcc-0f72964f10dd338c59e1ea8e8eee3a966154540d.zip
gcc-0f72964f10dd338c59e1ea8e8eee3a966154540d.tar.gz
gcc-0f72964f10dd338c59e1ea8e8eee3a966154540d.tar.bz2
cfg.c (dump_flow_info): Print results of maybe_hot/probably_never_executed predicates.
* cfg.c (dump_flow_info): Print results of maybe_hot/probably_never_executed predicates. * toplev.c (open_dump_file): Print function frequency. From-SVN: r53796
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r--gcc/cfg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cfg.c b/gcc/cfg.c
index 4b06601..e429125 100644
--- a/gcc/cfg.c
+++ b/gcc/cfg.c
@@ -552,7 +552,12 @@ dump_flow_info (file)
bb->prev_bb->index, bb->next_bb->index);
fprintf (file, "loop_depth %d, count ", bb->loop_depth);
fprintf (file, HOST_WIDEST_INT_PRINT_DEC, bb->count);
- fprintf (file, ", freq %i.\n", bb->frequency);
+ fprintf (file, ", freq %i", bb->frequency);
+ if (maybe_hot_bb_p (bb))
+ fprintf (file, ", maybe hot");
+ if (probably_never_executed_bb_p (bb))
+ fprintf (file, ", probably never executed");
+ fprintf (file, ".\n", bb->frequency);
fprintf (file, "Predecessors: ");
for (e = bb->pred; e; e = e->pred_next)