]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Dump whether a SLP node represents load/store-lanes
authorRichard Biener <rguenther@suse.de>
Tue, 3 Sep 2024 13:05:43 +0000 (15:05 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 3 Sep 2024 15:03:01 +0000 (17:03 +0200)
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.

gcc/tree-vect-slp.cc

index 1342913affa1e65fb902b9577f556a3ea17dbd02..2b05032790e5094b2ed34d196e3b742944189865 100644 (file)
@@ -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