diff options
author | Richard Henderson <rth@redhat.com> | 2011-07-20 15:14:36 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2011-07-20 15:14:36 -0700 |
commit | 510a442a352a425d86dcd0995ceafd7a4e5dd3db (patch) | |
tree | 12e5ece87d8bf4aec813974464481c9479dc8ed6 /gcc/cfgrtl.c | |
parent | 00b40d0da26a32c18f696c8f301b51f55960d155 (diff) | |
download | gcc-510a442a352a425d86dcd0995ceafd7a4e5dd3db.zip gcc-510a442a352a425d86dcd0995ceafd7a4e5dd3db.tar.gz gcc-510a442a352a425d86dcd0995ceafd7a4e5dd3db.tar.bz2 |
Dump basic_block flags.
From-SVN: r176537
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 50 |
1 files changed, 6 insertions, 44 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 7eb4362..b8843ca 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -1664,28 +1664,10 @@ print_rtl_with_bb (FILE *outf, const_rtx rtx_first) for (tmp_rtx = rtx_first; NULL != tmp_rtx; tmp_rtx = NEXT_INSN (tmp_rtx)) { int did_output; - if ((bb = start[INSN_UID (tmp_rtx)]) != NULL) - { - edge e; - edge_iterator ei; - fprintf (outf, ";; Start of basic block ("); - FOR_EACH_EDGE (e, ei, bb->preds) - fprintf (outf, " %d", e->src->index); - fprintf (outf, ") -> %d\n", bb->index); - - if (df) - { - df_dump_top (bb, outf); - putc ('\n', outf); - } - FOR_EACH_EDGE (e, ei, bb->preds) - { - fputs (";; Pred edge ", outf); - dump_edge_info (outf, e, 0); - fputc ('\n', outf); - } - } + bb = start[INSN_UID (tmp_rtx)]; + if (bb != NULL) + dump_bb_info (bb, true, false, dump_flags, ";; ", outf); if (in_bb_p[INSN_UID (tmp_rtx)] == NOT_IN_BB && !NOTE_P (tmp_rtx) @@ -1696,29 +1678,9 @@ print_rtl_with_bb (FILE *outf, const_rtx rtx_first) did_output = print_rtl_single (outf, tmp_rtx); - if ((bb = end[INSN_UID (tmp_rtx)]) != NULL) - { - edge e; - edge_iterator ei; - - fprintf (outf, ";; End of basic block %d -> (", bb->index); - FOR_EACH_EDGE (e, ei, bb->succs) - fprintf (outf, " %d", e->dest->index); - fprintf (outf, ")\n"); - - if (df) - { - df_dump_bottom (bb, outf); - putc ('\n', outf); - } - putc ('\n', outf); - FOR_EACH_EDGE (e, ei, bb->succs) - { - fputs (";; Succ edge ", outf); - dump_edge_info (outf, e, 1); - fputc ('\n', outf); - } - } + bb = end[INSN_UID (tmp_rtx)]; + if (bb != NULL) + dump_bb_info (bb, false, true, dump_flags, ";; ", outf); if (did_output) putc ('\n', outf); } |