i386.c (slm_cost): Adjust vec_to_scalar_cost.
authorEvgeny Stupachenko <evstupac@gmail.com>
Thu, 17 Apr 2014 07:45:42 +0000 (07:45 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Thu, 17 Apr 2014 07:45:42 +0000 (07:45 +0000)
gcc/
        * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
        * config/i386/i386.c (intel_cost): Ditto.

From-SVN: r209464

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

index 9583562a81af0c7f1c0480551a36ab7e0e5428a8..682816be898cd09ad3ad5767522dd8942691c202 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
+
+       * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
+       * config/i386/i386.c (intel_cost): Ditto.
+
 2014-04-17  Joey Ye  <joey.ye@arm.com>
 
        * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
index f2e6957169deae4f2ea0887518289ba523a787db..bf4d5762c47e5aa8e253f239f1f3b1ec7e3ee2e0 100644 (file)
@@ -1738,7 +1738,7 @@ struct processor_costs slm_cost = {
   1,                                   /* scalar load_cost.  */
   1,                                   /* scalar_store_cost.  */
   1,                                   /* vec_stmt_cost.  */
-  1,                                   /* vec_to_scalar_cost.  */
+  4,                                   /* vec_to_scalar_cost.  */
   1,                                   /* scalar_to_vec_cost.  */
   1,                                   /* vec_align_load_cost.  */
   2,                                   /* vec_unalign_load_cost.  */
@@ -1815,7 +1815,7 @@ struct processor_costs intel_cost = {
   1,                                   /* scalar load_cost.  */
   1,                                   /* scalar_store_cost.  */
   1,                                   /* vec_stmt_cost.  */
-  1,                                   /* vec_to_scalar_cost.  */
+  4,                                   /* vec_to_scalar_cost.  */
   1,                                   /* scalar_to_vec_cost.  */
   1,                                   /* vec_align_load_cost.  */
   2,                                   /* vec_unalign_load_cost.  */
@@ -46318,7 +46318,6 @@ ix86_add_stmt_cost (void *data, int count, enum vect_cost_for_stmt kind,
 {
   unsigned *cost = (unsigned *) data;
   unsigned retval = 0;
-
   tree vectype = stmt_info ? stmt_vectype (stmt_info) : NULL_TREE;
   int stmt_cost = ix86_builtin_vectorization_cost (kind, vectype, misalign);