Support slim switch for cfg graph dump

From-SVN: r198201
This commit is contained in:
Xinliang David Li 2013-04-23 16:44:17 +00:00 committed by Xinliang David Li
parent 2a30e7e200
commit ecd14de909
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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. */