This makes it easier to discover whether SLP load or store nodes
participate in load/store-lanes accesses.

Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.

Richard.

        * tree-vect-slp.cc (vect_print_slp_tree): Annotate load
        and store-lanes nodes.
---
 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 6fbe976e671..41bc92b138a 100644
--- a/gcc/tree-vect-slp.cc
+++ b/gcc/tree-vect-slp.cc
@@ -2958,14 +2958,17 @@ vect_print_slp_tree (dump_flags_t dump_kind, 
dump_location_t loc,
        dump_printf (dump_kind, " %u[%u]",
                     SLP_TREE_LANE_PERMUTATION (node)[i].first,
                     SLP_TREE_LANE_PERMUTATION (node)[i].second);
-      dump_printf (dump_kind, " }\n");
+      dump_printf (dump_kind, " }%s\n",
+                  node->ldst_lanes ? " (load-lanes)" : "");
     }
   if (SLP_TREE_CHILDREN (node).is_empty ())
     return;
   dump_printf_loc (metadata, user_loc, "\tchildren");
   FOR_EACH_VEC_ELT (SLP_TREE_CHILDREN (node), i, child)
     dump_printf (dump_kind, " %p", (void *)child);
-  dump_printf (dump_kind, "\n");
+  dump_printf (dump_kind, "%s\n",
+              node->ldst_lanes && !SLP_TREE_LANE_PERMUTATION (node).exists ()
+              ? " (store-lanes)" : "");
 }
 
 DEBUG_FUNCTION void
-- 
2.43.0

Reply via email to