aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-02-22 09:30:49 +0100
committerRichard Biener <rguenther@suse.de>2021-02-22 09:31:29 +0100
commit44841e1788c7c64f7d422768a80036a2a90c677f (patch)
treef796e529bf8752dd2a29868016d6095df74a832b
parent8a8eee6bdb906788992622715bf97aff984ac989 (diff)
downloadgcc-44841e1788c7c64f7d422768a80036a2a90c677f.zip
gcc-44841e1788c7c64f7d422768a80036a2a90c677f.tar.gz
gcc-44841e1788c7c64f7d422768a80036a2a90c677f.tar.bz2
dump SLP subgraph before costing
This adds another dump of the SLP subgraph we're throwing at costing. 2021-02-22 Richard Biener <rguenther@suse.de> * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump costed subgraph.
-rw-r--r--gcc/tree-vect-slp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index ea8a97b..c521c34 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<slp_tree> 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;