Re: Simple enhancement to -dA dump

2011-04-11 Thread Hans-Peter Nilsson
On Sun, 3 Apr 2011, Xinliang David Li wrote: > 2011-04-03 Xinliang David Li > > * final.c (dump_basic_block_info): New function. + fprintf (file, "# BLOCK %d", bb->index); Random spotting: please use ASM_COMMENT_START instead of the naked "#". brgds, H-P

Re: Simple enhancement to -dA dump

2011-04-08 Thread Diego Novillo
On Fri, Apr 8, 2011 at 12:20, Xinliang David Li wrote: >>>   /* Output the insns.  */ >>>   for (insn = first; insn;) >>>     { >>> @@ -1721,8 +1788,19 @@ final (rtx first, FILE *file, int optimi >>>        insn_current_address = INSN_ADDRESSES (INSN_UID (insn)); >>>  #endif /* HAVE_ATTR_length *

Re: Simple enhancement to -dA dump

2011-04-08 Thread Xinliang David Li
On Fri, Apr 8, 2011 at 5:04 AM, Diego Novillo wrote: > On 04/03/2011 08:54 PM, Xinliang David Li wrote: > >> + >> +      fprintf (file, "# BLOCK %d", bb->index); >> +      if (bb->frequency) >> +        fprintf (file, " freq:%d", bb->frequency); >> +      if (bb->count) >> +        fprintf (file,

Re: Simple enhancement to -dA dump

2011-04-08 Thread Diego Novillo
On 04/03/2011 08:54 PM, Xinliang David Li wrote: + + fprintf (file, "# BLOCK %d", bb->index); + if (bb->frequency) +fprintf (file, " freq:%d", bb->frequency); + if (bb->count) +fprintf (file, " count:" HOST_WIDEST_INT_PRINT_DEC, + bb->count); +

Re: Simple enhancement to -dA dump

2011-04-07 Thread Xinliang David Li
Ping? On Sun, Apr 3, 2011 at 5:54 PM, Xinliang David Li wrote: > For an assembly dump, it is very useful to examine the control flow > graph with frequency and profile count information. This requires > dumping the .s file with more control flow annotations. This patch > does just that. The form