public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1747] analyzer: log out-edge description in exploded_graph::process_node
@ 2022-07-19 13:56 David Malcolm
0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2022-07-19 13:56 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:434d521d118fc7e7759b2b42bdddfa70caec637b
commit r13-1747-g434d521d118fc7e7759b2b42bdddfa70caec637b
Author: David Malcolm <dmalcolm@redhat.com>
Date: Tue Jul 19 09:53:39 2022 -0400
analyzer: log out-edge description in exploded_graph::process_node
I found this logging tweak very helpful when working on
PR analyzer/106284.
gcc/analyzer/ChangeLog:
* engine.cc (exploded_graph::process_node): Show any description
of the out-edge when logging it for consideration.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diff:
---
gcc/analyzer/engine.cc | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gcc/analyzer/engine.cc b/gcc/analyzer/engine.cc
index 9ffcc410839..4f7f9d03900 100644
--- a/gcc/analyzer/engine.cc
+++ b/gcc/analyzer/engine.cc
@@ -3974,8 +3974,12 @@ exploded_graph::process_node (exploded_node *node)
{
found_a_superedge = true;
if (logger)
- logger->log ("considering SN: %i -> SN: %i",
- succ->m_src->m_index, succ->m_dest->m_index);
+ {
+ label_text succ_desc (succ->get_description (false));
+ logger->log ("considering SN: %i -> SN: %i (%s)",
+ succ->m_src->m_index, succ->m_dest->m_index,
+ succ_desc.get ());
+ }
program_point next_point
= program_point::before_supernode (succ->m_dest, succ,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-19 13:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 13:56 [gcc r13-1747] analyzer: log out-edge description in exploded_graph::process_node David Malcolm
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).