public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-3285] graph output: use better colors for edges Date: Wed, 1 Sep 2021 11:33:47 +0000 (GMT) [thread overview] Message-ID: <20210901113347.2C1293858023@sourceware.org> (raw) https://gcc.gnu.org/g:a61623d9b38d28048ccbd397d4ccf52c2dfb3fed commit r12-3285-ga61623d9b38d28048ccbd397d4ccf52c2dfb3fed Author: Martin Liska <mliska@suse.cz> 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";
reply other threads:[~2021-09-01 11:33 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210901113347.2C1293858023@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).