]> gcc.gnu.org Git - gcc.git/commitdiff
tree-optimization/97013 - avoid duplicate 'vectorization is not profitable'
authorRichard Biener <rguenther@suse.de>
Fri, 11 Sep 2020 06:59:58 +0000 (08:59 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 11 Sep 2020 07:01:25 +0000 (09:01 +0200)
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.

gcc/tree-vect-slp.c

index aa6aa3328e81158e8c62bbca76033dd7982cde8d..35bde9bcb9dd7bd643b3b9e107bb2dddaaaf9b58 100644 (file)
@@ -3626,16 +3626,10 @@ vect_slp_analyze_bb_1 (bb_vec_info bb_vinfo, int n_stmts, bool &fatal,
 
   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,
This page took 0.075964 seconds and 5 git commands to generate.