From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 2C1293858023; Wed, 1 Sep 2021 11:33:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C1293858023 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-3285] graph output: use better colors for edges X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: 13a43a90aea368a25da50762eba4873bafb4e448 X-Git-Newrev: a61623d9b38d28048ccbd397d4ccf52c2dfb3fed Message-Id: <20210901113347.2C1293858023@sourceware.org> Date: Wed, 1 Sep 2021 11:33:47 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2021 11:33:47 -0000 https://gcc.gnu.org/g:a61623d9b38d28048ccbd397d4ccf52c2dfb3fed commit r12-3285-ga61623d9b38d28048ccbd397d4ccf52c2dfb3fed Author: Martin Liska Date: Wed Sep 1 10:59:47 2021 +0200 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: --- gcc/graph.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gcc/graph.c b/gcc/graph.c index ce8de33ffe1..9acd1d5b95e 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";