diff options
author | Jan Hubicka <jh@suse.cz> | 2005-07-31 22:55:41 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-07-31 20:55:41 +0000 |
commit | baf7a0d33c7820b048fffe2da276748d5ecbcce9 (patch) | |
tree | 01adf335c9a46cf27322677a09661de28c5417e9 /gcc | |
parent | 75d2cf695f0ad555d6e37a95bbb4d186c78c58d6 (diff) | |
download | gcc-baf7a0d33c7820b048fffe2da276748d5ecbcce9.zip gcc-baf7a0d33c7820b048fffe2da276748d5ecbcce9.tar.gz gcc-baf7a0d33c7820b048fffe2da276748d5ecbcce9.tar.bz2 |
pretty-print.h (pp_widest_integer): New macro.
* pretty-print.h (pp_widest_integer): New macro.
* tree-pretty-print.c (dump_bb_header): Print BB frequencies and
counts.
From-SVN: r102608
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/pretty-print.h | 2 | ||||
-rw-r--r-- | gcc/tree-pretty-print.c | 10 |
3 files changed, 18 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 967a610..45c082f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2005-07-31 Jan Hubicka <jh@suse.cz> + * pretty-print.h (pp_widest_integer): New macro. + * tree-pretty-print.c (dump_bb_header): Print BB frequencies and + counts. + +2005-07-31 Jan Hubicka <jh@suse.cz> + * output.h (enum section_category): Export from varasm.c (categorize_decl_for_section): Likewise. * varasm.c (enum section_category): Kill. diff --git a/gcc/pretty-print.h b/gcc/pretty-print.h index b587e60..b2c6772 100644 --- a/gcc/pretty-print.h +++ b/gcc/pretty-print.h @@ -269,6 +269,8 @@ struct pretty_print_info #define pp_decimal_int(PP, I) pp_scalar (PP, "%d", I) #define pp_wide_integer(PP, I) \ pp_scalar (PP, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) I) +#define pp_widest_integer(PP, I) \ + pp_scalar (PP, HOST_WIDEST_INT_PRINT_DEC, (HOST_WIDEST_INT) I) #define pp_pointer(PP, P) pp_scalar (PP, "%p", P) #define pp_identifier(PP, ID) pp_string (PP, ID) diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index d7bfe8c..6fa0326 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) { |