This avoids dumping 'vectorization is not profitable' one more time
if none of the opportunities in a BB is profitable.
2020-09-11 Richard Biener <rguenther@suse.de>
PR tree-optimization/97013
* tree-vect-slp.c (vect_slp_analyze_bb_1): Remove duplicate dumping.
vect_bb_partition_graph (bb_vinfo);
- /* Cost model: check if the vectorization is worthwhile. */
+ /* Cost model: check if the vectorization opportunities are worthwhile. */
if (!unlimited_cost_model (NULL)
&& !vect_bb_vectorization_profitable_p (bb_vinfo))
- {
- if (dump_enabled_p ())
- dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
- "not vectorized: vectorization is not "
- "profitable.\n");
- return false;
- }
+ return false;
if (dump_enabled_p ())
dump_printf_loc (MSG_NOTE, vect_location,