aboutsummaryrefslogtreecommitdiff
path: root/gcc/graph.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-09-01 10:59:47 +0200
committerMartin Liska <mliska@suse.cz>2021-09-01 13:33:04 +0200
commita61623d9b38d28048ccbd397d4ccf52c2dfb3fed (patch)
tree55d9b43c86d62e0a84d43636db1aff0dc9f0b5fa /gcc/graph.c
parent13a43a90aea368a25da50762eba4873bafb4e448 (diff)
downloadgcc-a61623d9b38d28048ccbd397d4ccf52c2dfb3fed.zip
gcc-a61623d9b38d28048ccbd397d4ccf52c2dfb3fed.tar.gz
gcc-a61623d9b38d28048ccbd397d4ccf52c2dfb3fed.tar.bz2
graph output: use better colors for edges
gcc/ChangeLog: * graph.c (draw_cfg_node_succ_edges): Do not color fallthru edges and rather use colors for TRUE and FALSE edges.
Diffstat (limited to 'gcc/graph.c')
-rw-r--r--gcc/graph.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/graph.c b/gcc/graph.c
index ce8de33..9acd1d5 100644
--- a/gcc/graph.c
+++ b/gcc/graph.c
@@ -133,10 +133,11 @@ draw_cfg_node_succ_edges (pretty_printer *pp, int funcdef_no, basic_block bb)
weight = 10;
}
else if (e->flags & EDGE_FALLTHRU)
- {
- color = "blue";
- weight = 100;
- }
+ weight = 100;
+ else if (e->flags & EDGE_TRUE_VALUE)
+ color = "forestgreen";
+ else if (e->flags & EDGE_FALSE_VALUE)
+ color = "darkorange";
if (e->flags & EDGE_ABNORMAL)
color = "red";