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
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 *
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,
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);
+
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
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 format of the annotation is the same as gimple
basic block dump with -fdump-tr