I found this useful information.

Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed.

        * tree-vect-slp.cc (vect_bb_vectorization_profitable_p):
        Dump SLP graph entries.
---
 gcc/tree-vect-slp.cc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc
index bb99412b34e..8ed7a0da377 100644
--- a/gcc/tree-vect-slp.cc
+++ b/gcc/tree-vect-slp.cc
@@ -9856,7 +9856,11 @@ vect_bb_vectorization_profitable_p (bb_vec_info bb_vinfo,
 
   if (dump_enabled_p ())
     {
-      dump_printf_loc (MSG_NOTE, vect_location, "Costing subgraph: \n");
+      dump_printf_loc (MSG_NOTE, vect_location, "Costing subgraph:\n");
+      FOR_EACH_VEC_ELT (slp_instances, i, instance)
+       dump_printf_loc (MSG_NOTE, vect_location, "   entry instance %p -> "
+                        "node %p\n", (void *)instance,
+                        (void *)SLP_INSTANCE_TREE (instance));
       hash_set<slp_tree> visited;
       FOR_EACH_VEC_ELT (slp_instances, i, instance)
        vect_print_slp_graph (MSG_NOTE, vect_location,
-- 
2.51.0

Reply via email to