rs600.c (rs6000_builtin_vectorization_cost): Adjust unaligned load cost.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Tue, 13 Dec 2016 20:05:10 +0000 (20:05 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Tue, 13 Dec 2016 20:05:10 +0000 (20:05 +0000)
2016-12-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
Adjust unaligned load cost.

From-SVN: r243623

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index cbf7b2f466d90fe9ec4d27f20ce16d219229550a..dff1b829ce5f0db40482b6268bd3a93fab2ebfa3 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
+
+       * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
+       Adjust unaligned load cost.
+
 2016-12-13  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/78794
index 27bae7145ef0884584f1c3c5ae7baefcc4f540b0..042ffc6465797c79176e51941c1ca5a11f81d3aa 100644 (file)
@@ -5358,6 +5358,9 @@ rs6000_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost,
         return 3;
 
       case unaligned_load:
+       if (TARGET_P9_VECTOR)
+         return 3;
+
        if (TARGET_EFFICIENT_UNALIGNED_VSX)
          return 1;