aboutsummaryrefslogtreecommitdiff
path: root/gcc/analyzer/supergraph.cc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2020-02-03 09:55:26 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2020-02-03 14:27:04 -0500
commit73f386581bddc4d630b93eeb0cddd32943bf24e7 (patch)
treedb7af49b4aeadc1f3310a262e7f82b09582cbdf2 /gcc/analyzer/supergraph.cc
parent5e10b9a28be9061b9b0c4aa3cfabe6d478e444e0 (diff)
downloadgcc-73f386581bddc4d630b93eeb0cddd32943bf24e7.zip
gcc-73f386581bddc4d630b93eeb0cddd32943bf24e7.tar.gz
gcc-73f386581bddc4d630b93eeb0cddd32943bf24e7.tar.bz2
analyzer: show BBs in .dot dumps
gcc/analyzer/ChangeLog: * engine.cc (supernode_cluster::dump_dot): Show BB index as well as SN index. * supergraph.cc (supernode::dump_dot): Likewise.
Diffstat (limited to 'gcc/analyzer/supergraph.cc')
-rw-r--r--gcc/analyzer/supergraph.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/analyzer/supergraph.cc b/gcc/analyzer/supergraph.cc
index a5bf52d..b20daa0 100644
--- a/gcc/analyzer/supergraph.cc
+++ b/gcc/analyzer/supergraph.cc
@@ -437,7 +437,7 @@ supernode::dump_dot (graphviz_out *gv, const dump_args_t &args) const
gv->println("style=\"solid\";");
gv->println("color=\"black\";");
gv->println("fillcolor=\"lightgrey\";");
- gv->println("label=\"sn: %i\";", m_index);
+ gv->println("label=\"sn: %i (bb: %i)\";", m_index, m_bb->index);
pretty_printer *pp = gv->get_pp ();