diff options
author | Xinliang David Li <davidxl@google.com> | 2013-04-23 00:14:38 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@gcc.gnu.org> | 2013-04-23 00:14:38 +0000 |
commit | 473b1e05c3232ef6b131a83c828519fd536f7dee (patch) | |
tree | 00b5311d556f69bf0037a3017b1849686bfd3d1d /gcc/cfghooks.c | |
parent | b1485a33a3422fb8a2022d59660509cd9a3ea717 (diff) | |
download | gcc-473b1e05c3232ef6b131a83c828519fd536f7dee.tar.gz |
Display profile info in graph cfg dump
From-SVN: r198165
Diffstat (limited to 'gcc/cfghooks.c')
-rw-r--r-- | gcc/cfghooks.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cfghooks.c b/gcc/cfghooks.c index 5354624d91c..6832aabff9e 100644 --- a/gcc/cfghooks.c +++ b/gcc/cfghooks.c @@ -30,6 +30,7 @@ along with GCC; see the file COPYING3. If not see #include "timevar.h" #include "diagnostic-core.h" #include "cfgloop.h" +#include "pretty-print.h" /* A pointer to one of the hooks containers. */ static struct cfg_hooks *cfg_hooks; @@ -308,6 +309,10 @@ dump_bb_for_graph (pretty_printer *pp, basic_block bb) if (!cfg_hooks->dump_bb_for_graph) internal_error ("%s does not support dump_bb_for_graph", cfg_hooks->name); + if (bb->count) + pp_printf (pp, "COUNT:" HOST_WIDEST_INT_PRINT_DEC, bb->count); + pp_printf (pp, " FREQ:%i |", bb->frequency); + pp_write_text_to_stream (pp); cfg_hooks->dump_bb_for_graph (pp, bb); } |