The following patch pushes a DUMP_VECT_SCOPE down one level because it otherwise hides a MSG_OPTIMIZED_LOCATION print.
David - was this an intended effect of the scoping? Applied to trunk. Richard. 2018-11-06 Richard Biener <rguent...@suse.de> * tree-vect-slp.c (vect_slp_bb): Move opening of vect_slp_analyze_bb dump-scope ... (vect_slp_analyze_bb_1): ... here to avoid hiding optimized locations. diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index e7e5d252c00..f802b004bef 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -2779,6 +2779,8 @@ vect_slp_analyze_bb_1 (gimple_stmt_iterator region_begin, vec<data_reference_p> datarefs, int n_stmts, bool &fatal, vec_info_shared *shared) { + DUMP_VECT_SCOPE ("vect_slp_analyze_bb"); + bb_vec_info bb_vinfo; slp_instance instance; int i; @@ -2949,8 +2951,6 @@ vect_slp_bb (basic_block bb) bool any_vectorized = false; auto_vector_sizes vector_sizes; - DUMP_VECT_SCOPE ("vect_slp_analyze_bb"); - /* Autodetect first vector size we try. */ current_vector_size = 0; targetm.vectorize.autovectorize_vector_sizes (&vector_sizes);