From: Richard Biener Date: Tue, 21 Apr 2015 12:21:21 +0000 (+0000) Subject: i386.c (ix86_builtin_vectorization_cost): Scale vec_construct cost by vec_stmt_cost. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=908c55f1612aff989f56d4ab0d7793fe5a84608d;p=gcc.git i386.c (ix86_builtin_vectorization_cost): Scale vec_construct cost by vec_stmt_cost. 2015-04-21 Richard Biener * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale vec_construct cost by vec_stmt_cost. From-SVN: r222265 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6970232d8d1..791db049d58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-04-21 Richard Biener + + * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale + vec_construct cost by vec_stmt_cost. + 2015-04-21 Richard Biener * cfghooks.h (create_basic_block): Replace with two overloads diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 74332f3bef0..bdc365274bb 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -46705,7 +46705,7 @@ ix86_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost, case vec_construct: elements = TYPE_VECTOR_SUBPARTS (vectype); - return elements / 2 + 1; + return ix86_cost->vec_stmt_cost * (elements / 2 + 1); default: gcc_unreachable ();