From: Richard Biener Date: Mon, 22 Feb 2021 08:30:49 +0000 (+0100) Subject: dump SLP subgraph before costing X-Git-Tag: basepoints/gcc-12~939 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44841e1788c7c64f7d422768a80036a2a90c677f;p=thirdparty%2Fgcc.git dump SLP subgraph before costing This adds another dump of the SLP subgraph we're throwing at costing. 2021-02-22 Richard Biener * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump costed subgraph. --- diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index ea8a97b01c63..c521c34a83bc 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -4366,6 +4366,15 @@ vect_bb_vectorization_profitable_p (bb_vec_info bb_vinfo, unsigned int vec_inside_cost = 0, vec_outside_cost = 0, scalar_cost = 0; unsigned int vec_prologue_cost = 0, vec_epilogue_cost = 0; + if (dump_enabled_p ()) + { + dump_printf_loc (MSG_NOTE, vect_location, "Costing subgraph: \n"); + hash_set visited; + FOR_EACH_VEC_ELT (slp_instances, i, instance) + vect_print_slp_graph (MSG_NOTE, vect_location, + SLP_INSTANCE_TREE (instance), visited); + } + /* Calculate scalar cost and sum the cost for the vector stmts previously collected. */ stmt_vector_for_cost scalar_costs = vNULL;