aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-09-11 08:59:58 +0200
committerRichard Biener <rguenther@suse.de>2020-09-11 09:01:25 +0200
commita9c960a3bd621fc7a721e3c31c706ba736b384ea (patch)
tree3e8e4d641a7731ee4f0b51462e995c39939a8f58
parent563326b5e49fcaace2fcab2ddd4071a5f1cfe709 (diff)
downloadgcc-a9c960a3bd621fc7a721e3c31c706ba736b384ea.zip
gcc-a9c960a3bd621fc7a721e3c31c706ba736b384ea.tar.gz
gcc-a9c960a3bd621fc7a721e3c31c706ba736b384ea.tar.bz2
tree-optimization/97013 - avoid duplicate 'vectorization is not profitable'
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.
-rw-r--r--gcc/tree-vect-slp.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index aa6aa33..35bde9b 100644
--- a/gcc/tree-vect-slp.c
+++ b/gcc/tree-vect-slp.c
@@ -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,