[gcc r17-3417] dump scheduling point set on SLP nodes

Richard Biener via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:231135663b10a582dd027679e6aee4155ce0379b

commit r17-3417-g231135663b10a582dd027679e6aee4155ce0379b
Author: Richard Biener <[email protected]>
Date:   Wed Aug 19 13:09:05 2026 +0200

    dump scheduling point set on SLP nodes
    
    This dumps the scheduling point if set on SLP nodes.
    
            * tree-vect-slp.cc (vect_print_slp_tree): Dump the scheduling
            point, if set.

Diff:
---
 gcc/tree-vect-slp.cc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc
index ab29e8996d20..f8f7c19348da 100644
--- a/gcc/tree-vect-slp.cc
+++ b/gcc/tree-vect-slp.cc
@@ -3372,7 +3372,7 @@ vect_print_slp_tree (dump_flags_t dump_kind, dump_location_t loc,
 		      ? " (constant)"
 		      : ""), (void *) node,
 		   estimated_poly_value (node->max_nunits),
-					 SLP_TREE_REF_COUNT (node));
+		   SLP_TREE_REF_COUNT (node));
   if (SLP_TREE_VECTYPE (node))
     dump_printf (metadata, " %T", SLP_TREE_VECTYPE (node));
   dump_printf (metadata, "%s",
@@ -3380,7 +3380,10 @@ vect_print_slp_tree (dump_flags_t dump_kind, dump_location_t loc,
   if (node->cycle_info.id != -1 || node->cycle_info.reduc_idx != -1)
     dump_printf (metadata, " cycle %d, link %d", node->cycle_info.id,
 		 node->cycle_info.reduc_idx);
-  dump_printf (metadata, "\n");
+  if (node->si)
+    dump_printf (metadata, " @%G", node->si);
+  else
+    dump_printf (metadata, "\n");
   if (SLP_TREE_DEF_TYPE (node) == vect_internal_def)
     {
       if (SLP_TREE_PERMUTE_P (node))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.