diff options
-rw-r--r-- | gcc/common.opt | 4 | ||||
-rw-r--r-- | gcc/tree-vect-slp.c | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 6d98927fcc65..abb50ad4fabb 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -2640,6 +2640,10 @@ flist-find-pipeline Common Report Var(list_find_pipe) Optimization Pipeline the find operation in a linked list. +fvectorize-more +Common Report Var(flag_vectorize_more) Optimization +Vectorize a bit more. + funwind-tables Common Report Var(flag_unwind_tables) Optimization Just generate unwind tables for exception handling. diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 66548cf6f86e..8b3492567797 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -2526,6 +2526,18 @@ vect_slp_analyze_operations (vec<slp_instance> slp_instances, void *data) vect_free_slp_instance (instance); slp_instances.ordered_remove (i); } + else if (flag_vectorize_more != 0 && i > 0) + { + dump_printf_loc (MSG_NOTE, vect_location, + "removing SLP instance operations starting from: "); + dump_gimple_stmt (MSG_NOTE, TDF_SLIM, + SLP_TREE_SCALAR_STMTS + (SLP_INSTANCE_TREE (instance))[0], 0); + dump_printf_loc (MSG_NOTE, vect_location, + "remove all but first instance\n"); + vect_free_slp_instance (instance); + slp_instances.ordered_remove (i); + } else { /* Compute the costs of the SLP instance. */ |