]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make SLP discovery more verbose master trunk
authorRichard Biener <rguenther@suse.de>
Mon, 6 Jul 2026 07:26:22 +0000 (09:26 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 6 Jul 2026 09:42:21 +0000 (11:42 +0200)
The following dumps the first root stmt when analyzing a BB reduction.

* tree-vect-slp.cc (vect_build_slp_instance): For BB reductions
note the first root stmt.

gcc/tree-vect-slp.cc

index 6081948fed4f80a876fa85ef2c22e103c3a8dbd7..5fd9c8da89ec1ff92ef8d2b083dcb5009eae5cb9 100644 (file)
@@ -4213,6 +4213,13 @@ vect_build_slp_instance (vec_info *vinfo,
                         "Analyzing vectorizable control flow: %G",
                         root_stmt_infos[0]->stmt);
     }
+  else if (kind == slp_inst_kind_bb_reduc)
+    {
+      if (dump_enabled_p ())
+       dump_printf_loc (MSG_NOTE, vect_location,
+                        "Analyzing vectorizable BB reduction: %G",
+                        root_stmt_infos[0]->stmt);
+    }
 
   if (dump_enabled_p ())
     {