]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
graph output: use better colors for edges
authorMartin Liska <mliska@suse.cz>
Wed, 1 Sep 2021 08:59:47 +0000 (10:59 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 1 Sep 2021 11:33:04 +0000 (13:33 +0200)
gcc/ChangeLog:

* graph.c (draw_cfg_node_succ_edges): Do not color fallthru
  edges and rather use colors for TRUE and FALSE edges.

gcc/graph.c

index ce8de33ffe10ca2af1f2012c8c51d89446446ff0..9acd1d5b95e4ca1ded72e802795eec6a1c2bbd4d 100644 (file)
@@ -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";