From cdd43af802013e32e5083bf8eb926e724aeba90c Mon Sep 17 00:00:00 2001 From: hubicka Date: Thu, 23 May 2002 17:46:46 +0000 Subject: * cfg.c (dump_flow_info): Print results of maybe_hot/probably_never_executed predicates. * toplev.c (open_dump_file): Print function frequency. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53796 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cfg.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/cfg.c') diff --git a/gcc/cfg.c b/gcc/cfg.c index 4b066011b0c..e4291259a81 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) -- cgit v1.2.1