aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-09-03 15:05:43 +0200
committerRichard Biener <rguenth@gcc.gnu.org>2024-09-03 17:03:01 +0200
commitef0c4482ca8069fa56e8d359dbdc6168be499f69 (patch)
tree57f45652dfff8092f757936406e84ebc8c7b4fbc /gcc
parentbd120de19c600d064b3b3b5abf8c36ffc0037c40 (diff)
downloadgcc-ef0c4482ca8069fa56e8d359dbdc6168be499f69.zip
gcc-ef0c4482ca8069fa56e8d359dbdc6168be499f69.tar.gz
gcc-ef0c4482ca8069fa56e8d359dbdc6168be499f69.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-vect-slp.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc
index 1342913..2b05032 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