pretty-print.h (pp_widest_integer): New macro.
authorJan Hubicka <jh@suse.cz>
Sun, 31 Jul 2005 20:55:41 +0000 (22:55 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 31 Jul 2005 20:55:41 +0000 (20:55 +0000)
* pretty-print.h (pp_widest_integer): New macro.
* tree-pretty-print.c (dump_bb_header): Print BB frequencies and
counts.

From-SVN: r102608

gcc/ChangeLog
gcc/pretty-print.h
gcc/tree-pretty-print.c

index 967a610e24d65b1c77ed0923dc4d92396225963d..45c082fee6b4e59162d72418d024b8cc2b5fffa8 100644 (file)
@@ -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
index b587e600882b610be11d2020bc2c5cd615b89f46..b2c6772b7c04f0d7ddb69bfa4acc6ae86813587f 100644 (file)
@@ -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)
index d7bfe8c129c982a14250dc54fa760899ed184f87..6fa0326d429c75e46804f42a2c13785b7947f8df 100644 (file)
@@ -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)
        {