i386.c (ix86_builtin_vectorization_cost): Scale vec_construct cost by vec_stmt_cost.
authorRichard Biener <rguenther@suse.de>
Tue, 21 Apr 2015 12:21:21 +0000 (12:21 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 21 Apr 2015 12:21:21 +0000 (12:21 +0000)
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

gcc/ChangeLog
gcc/config/i386/i386.c

index 6970232d8d16b569136a4b9ea8aef8e47555386d..791db049d58fb63741dca2f2283d0ee47f26bb50 100644 (file)
@@ -1,3 +1,8 @@
+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
index 74332f3bef0f1cf411e38342546eff27d52b071b..bdc365274bbc1343cb9a35c8d3937b203a4b1ef9 100644 (file)
@@ -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 ();