diff options
author | Richard Biener <rguenther@suse.de> | 2016-07-15 07:38:01 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-07-15 07:38:01 +0000 |
commit | 8d4fc2d3d0c8f87bb3e182be1a618a511f8f9465 (patch) | |
tree | 3493ce473094c07ba6ec28f4e029abefc5c331f4 | |
parent | ea142e833d65ec75f1f67de81a24e8444c9bad80 (diff) | |
download | gcc-8d4fc2d3d0c8f87bb3e182be1a618a511f8f9465.zip gcc-8d4fc2d3d0c8f87bb3e182be1a618a511f8f9465.tar.gz gcc-8d4fc2d3d0c8f87bb3e182be1a618a511f8f9465.tar.bz2 |
i386.c (ix86_builtin_vectorization_cost): Adjust vec_construct cost.
2016-07-15 Richard Biener <rguenther@suse.de>
* config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
vec_construct cost.
From-SVN: r238364
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8da2378..624d4d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-07-15 Richard Biener <rguenther@suse.de> + + * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust + vec_construct cost. + 2016-07-14 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/71872 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index d190bef..ba35dce 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -49770,8 +49770,6 @@ static int ix86_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost, tree vectype, int) { - unsigned elements; - switch (type_of_cost) { case scalar_stmt: @@ -49813,8 +49811,7 @@ ix86_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost, return ix86_cost->vec_stmt_cost; case vec_construct: - elements = TYPE_VECTOR_SUBPARTS (vectype); - return ix86_cost->vec_stmt_cost * (elements / 2 + 1); + return ix86_cost->vec_stmt_cost * (TYPE_VECTOR_SUBPARTS (vectype) - 1); default: gcc_unreachable (); |