From c03cae4e066066278c8435c409829a9bf851e49f Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 7 Jul 2021 11:45:43 +0200 Subject: Display the number of components BB vectorized This amends the optimization message printed when a basic-block part is vectorized to mention the number of SLP graph entries. This helps when debugging vectorization differences and we end up merging SLP instances for costing purposes. 2021-07-07 Richard Biener * tree-vect-slp.c (vect_slp_region): Show the number of SLP graph entries in the optimization message. * g++.dg/vect/slp-pr87105.cc: Adjust. * gcc.dg/vect/bb-slp-pr54400.c: Likewise. --- gcc/tree-vect-slp.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'gcc/tree-vect-slp.c') diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 5357cd0..cd002b3 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -5827,12 +5827,16 @@ vect_slp_region (vec bbs, vec datarefs, if (GET_MODE_SIZE (bb_vinfo->vector_mode).is_constant (&bytes)) dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, vect_location, - "basic block part vectorized using %wu " - "byte vectors\n", bytes); + "basic block part with %u components " + "vectorized using %wu byte vectors\n", + instance->subgraph_entries.length (), + bytes); else dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, vect_location, - "basic block part vectorized using " - "variable length vectors\n"); + "basic block part with %u components " + "vectorized using variable length " + "vectors\n", + instance->subgraph_entries.length ()); } } } -- cgit v1.1