This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Simple change in dot dumper -- Display profile count and branch probability


On Sun, Apr 21, 2013 at 12:47 AM, Xinliang David Li wrote:
> Index: graph.c
> ===================================================================
> --- graph.c     (revision 198108)
> +++ graph.c     (working copy)
> @@ -110,6 +110,9 @@ draw_cfg_node (pretty_printer *pp, int f
>    else
>      {
>        pp_character (pp, '{');
> +      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);
>        dump_bb_for_graph (pp, bb);
>        pp_character (pp, '}');

This doesn't belong here, please put it in cfghooks.c:dump_bb_for_graph.

Otherwise, looks good me.

Ciao!
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]