diff options
author | Richard Biener <rguenther@suse.de> | 2015-04-21 12:21:21 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-04-21 12:21:21 +0000 |
commit | 908c55f1612aff989f56d4ab0d7793fe5a84608d (patch) | |
tree | 22bcc05d2ca842503698529a49f29186767fd1f0 | |
parent | c4d281b29a03c1e7637936434a04e9a419f22c00 (diff) | |
download | gcc-908c55f1612aff989f56d4ab0d7793fe5a84608d.zip gcc-908c55f1612aff989f56d4ab0d7793fe5a84608d.tar.gz gcc-908c55f1612aff989f56d4ab0d7793fe5a84608d.tar.bz2 |
i386.c (ix86_builtin_vectorization_cost): Scale vec_construct cost by vec_stmt_cost.
2015-04-21 Richard Biener <rguenther@suse.de>
* config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
vec_construct cost by vec_stmt_cost.
From-SVN: r222265
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6970232..791db04 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2015-04-21 Richard Biener <rguenther@suse.de> + * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale + vec_construct cost by vec_stmt_cost. + +2015-04-21 Richard Biener <rguenther@suse.de> + * cfghooks.h (create_basic_block): Replace with two overloads for RTL and GIMPLE. (split_block): Likewise. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 74332f3..bdc3652 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 (); |