From: Richard Biener Date: Fri, 10 Jun 2016 11:45:39 +0000 (+0000) Subject: targhooks.c (default_builtin_vectorization_cost): Adjust vec_construct cost. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fcea0bbbacd4f2ef7007338b3ec6edf72e9ba6a7;p=gcc.git targhooks.c (default_builtin_vectorization_cost): Adjust vec_construct cost. 2016-06-10 Richard Biener * targhooks.c (default_builtin_vectorization_cost): Adjust vec_construct cost. From-SVN: r237302 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5038f751ae3..580dbed12c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-06-10 Richard Biener + + * targhooks.c (default_builtin_vectorization_cost): Adjust + vec_construct cost. + 2016-06-10 Richard Biener * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 95980f547bd..3e089e759ce 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -564,8 +564,6 @@ default_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost, tree vectype, int misalign ATTRIBUTE_UNUSED) { - unsigned elements; - switch (type_of_cost) { case scalar_stmt: @@ -589,8 +587,7 @@ default_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost, return 3; case vec_construct: - elements = TYPE_VECTOR_SUBPARTS (vectype); - return elements / 2 + 1; + return TYPE_VECTOR_SUBPARTS (vectype) - 1; default: gcc_unreachable ();