diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-31 20:55:41 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-31 20:55:41 +0000 |
commit | 327a38c3c847413f53c0adedd0528218b3f8acc0 (patch) | |
tree | 01adf335c9a46cf27322677a09661de28c5417e9 /gcc/tree-pretty-print.c | |
parent | a4f2c3026310eeb49381fd225a6f70506028b8d7 (diff) | |
download | gcc-327a38c3c847413f53c0adedd0528218b3f8acc0.tar.gz |
* pretty-print.h (pp_widest_integer): New macro.
* tree-pretty-print.c (dump_bb_header): Print BB frequencies and
counts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102608 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index d7bfe8c129c..6fa0326d429 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -2247,6 +2247,16 @@ dump_bb_header (pretty_printer *buffer, basic_block bb, int indent, int flags) INDENT (indent); pp_string (buffer, "# BLOCK "); pp_decimal_int (buffer, bb->index); + if (bb->frequency) + { + pp_string (buffer, " freq:"); + pp_decimal_int (buffer, bb->frequency); + } + if (bb->count) + { + pp_string (buffer, " count:"); + pp_widest_integer (buffer, bb->count); + } if (flags & TDF_LINENO) { |