* [committed] analyzer: log out-edge description in exploded_graph::process_node
@ 2022-07-19 14:02 David Malcolm
0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2022-07-19 14:02 UTC (permalink / raw)
To: gcc-patches
I found this logging tweak very helpful when working on
PR analyzer/106284.
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Pushed to trunk as r13-1747-g434d521d118fc7.
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>
---
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,
--
2.26.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-19 14:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 14:02 [committed] 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).