diff options
author | Xinliang David Li <davidxl@google.com> | 2013-04-23 16:44:17 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@gcc.gnu.org> | 2013-04-23 16:44:17 +0000 |
commit | ecd14de909b5ffbfbae87d5132ea55982cb66f6f (patch) | |
tree | fb8cb1577690e9e5922ea506ff9d3114422c61a6 /gcc | |
parent | 2a30e7e2001708f13abf0fb27dd354377a674845 (diff) | |
download | gcc-ecd14de909b5ffbfbae87d5132ea55982cb66f6f.zip gcc-ecd14de909b5ffbfbae87d5132ea55982cb66f6f.tar.gz gcc-ecd14de909b5ffbfbae87d5132ea55982cb66f6f.tar.bz2 |
Support slim switch for cfg graph dump
From-SVN: r198201
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cfghooks.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca931ae..e0b3c40 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-04-23 Xinliang David Li <davidxl@google.com> + + * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump. + 2013-04-23 Richard Biener <rguenther@suse.de> PR middle-end/57036 diff --git a/gcc/cfghooks.c b/gcc/cfghooks.c index 6832aab..f583b2f 100644 --- a/gcc/cfghooks.c +++ b/gcc/cfghooks.c @@ -313,7 +313,8 @@ dump_bb_for_graph (pretty_printer *pp, basic_block bb) pp_printf (pp, "COUNT:" HOST_WIDEST_INT_PRINT_DEC, bb->count); pp_printf (pp, " FREQ:%i |", bb->frequency); pp_write_text_to_stream (pp); - cfg_hooks->dump_bb_for_graph (pp, bb); + if (!(dump_flags & TDF_SLIM)) + cfg_hooks->dump_bb_for_graph (pp, bb); } /* Dump the complete CFG to FILE. FLAGS are the TDF_* flags in dumpfile.h. */ |