summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-slp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-vect-slp.c')
-rw-r--r--gcc/tree-vect-slp.c12
1 files changed, 12 insertions, 0 deletions
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. */