From: rguenth Date: Fri, 10 Jun 2016 11:45:39 +0000 (+0000) Subject: 2016-06-10 Richard Biener X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79a1426f9e5f2f9c2ad9bf5b8250bd738b140bf2;p=thirdparty%2Fgcc.git 2016-06-10 Richard Biener * targhooks.c (default_builtin_vectorization_cost): Adjust vec_construct cost. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237302 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5038f751ae34..580dbed12c34 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 95980f547bd9..3e089e759ce9 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 ();