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
This commit is contained in:
parent
75d2cf695f
commit
baf7a0d33c
3 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue