Simple enhancement to -dA dump
Xinliang David Li
davidxl@google.com
Mon Apr 4 00:54:00 GMT 2011
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-tree-xxx-blocks so the same
post-processing tools can be shared to generate the .dot file. To see
bb layout, the BB sequence number is also dumped.
Bootstrapped on x86-64/linux. Regression test is on going.
Ok for checkin?
Thanks,
David
2011-04-03 Xinliang David Li <davidxl@google.com>
* final.c (dump_basic_block_info): New function.
(final): Dump basic block.
(final_scan_insn): Remove old dump.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dA.p
Type: application/octet-stream
Size: 3102 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110404/516f1883/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: un.s
Type: application/octet-stream
Size: 2243 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110404/516f1883/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: un.s.dot
Type: application/octet-stream
Size: 1867 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110404/516f1883/attachment-0002.obj>
More information about the Gcc-patches
mailing list