From: Richard Biener Date: Mon, 6 Jul 2026 07:26:22 +0000 (+0200) Subject: Make SLP discovery more verbose X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d0271c4f45e06008d203ae794d386e36872e41c;p=thirdparty%2Fgcc.git Make SLP discovery more verbose 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. --- diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc index 6081948fed4..5fd9c8da89e 100644 --- a/gcc/tree-vect-slp.cc +++ b/gcc/tree-vect-slp.cc @@ -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 ()) {