https://gcc.gnu.org/g:ef0c4482ca8069fa56e8d359dbdc6168be499f69
commit r15-3422-gef0c4482ca8069fa56e8d359dbdc6168be499f69 Author: Richard Biener <rguent...@suse.de> Date: Tue Sep 3 15:05:43 2024 +0200 Dump whether a SLP node represents load/store-lanes This makes it easier to discover whether SLP load or store nodes participate in load/store-lanes accesses. * tree-vect-slp.cc (vect_print_slp_tree): Annotate load and store-lanes nodes. 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 1342913affa1..2b05032790e5 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