From: Martin Liska Date: Wed, 1 Sep 2021 08:59:47 +0000 (+0200) Subject: graph output: use better colors for edges X-Git-Tag: basepoints/gcc-13~5028 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a61623d9b38d28048ccbd397d4ccf52c2dfb3fed;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/graph.c b/gcc/graph.c index ce8de33ffe10..9acd1d5b95e4 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";