aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-08-28 11:06:00 +0200
committerRichard Biener <rguenth@gcc.gnu.org>2024-08-28 12:44:46 +0200
commit2c0b574ac6a2d01b099fcb60e46414e96b93f0a9 (patch)
treecfb0eab5c9f7e624695c7a795d7f809ade25b9c7
parent04065d8c3083f76f877dc62d56807a7d3638be69 (diff)
downloadgcc-2c0b574ac6a2d01b099fcb60e46414e96b93f0a9.zip
gcc-2c0b574ac6a2d01b099fcb60e46414e96b93f0a9.tar.gz
gcc-2c0b574ac6a2d01b099fcb60e46414e96b93f0a9.tar.bz2
Add debug overload for slp_instance
I found it helpful to be able to print a whole SLP instance from gdb. * tree-vect-slp.cc (debug): Add overload for slp_instance.
-rw-r--r--gcc/tree-vect-slp.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc
index d110c99..fe49811 100644
--- a/gcc/tree-vect-slp.cc
+++ b/gcc/tree-vect-slp.cc
@@ -3038,6 +3038,15 @@ vect_print_slp_graph (dump_flags_t dump_kind, dump_location_t loc,
vect_print_slp_graph (dump_kind, loc, entry, visited);
}
+DEBUG_FUNCTION void
+debug (slp_instance instance)
+{
+ debug_dump_context ctx;
+ vect_print_slp_graph (MSG_NOTE,
+ dump_location_t::from_location_t (UNKNOWN_LOCATION),
+ SLP_INSTANCE_TREE (instance));
+}
+
/* Mark the tree rooted at NODE with PURE_SLP. */
static void