From d1ac60d5759dc63e4f03311d6c85cda8c9d12133 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 15 Jun 2018 12:41:46 +0000 Subject: tree-vect-slp.c (vect_slp_bb): Dump MSG_OPTIMIZED_LOCATIONS here, also noting vector size used. 2018-06-15 Richard Biener * tree-vect-slp.c (vect_slp_bb): Dump MSG_OPTIMIZED_LOCATIONS here, also noting vector size used. * tree-vectorizer.c (vectorize_loops): Adjust. Note vector size used in MSG_OPTIMIZED_LOCATIONS dump. (pass_slp_vectorize::execute): Adjust. From-SVN: r261626 --- gcc/tree-vect-slp.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gcc/tree-vect-slp.c') diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 0a96a93..5e8a0d0 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -3036,9 +3036,16 @@ vect_slp_bb (basic_block bb) vect_schedule_slp (bb_vinfo); - if (dump_enabled_p ()) - dump_printf_loc (MSG_NOTE, vect_location, - "basic block part vectorized\n"); + unsigned HOST_WIDE_INT bytes; + if (current_vector_size.is_constant (&bytes)) + dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, vect_location, + "basic block part vectorized using " + HOST_WIDE_INT_PRINT_UNSIGNED " byte " + "vectors\n", bytes); + else + dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, vect_location, + "basic block part vectorized using variable " + "length vectors\n"); vectorized = true; } -- cgit v1.1