From: Bill Schmidt Date: Tue, 13 Dec 2016 20:05:10 +0000 (+0000) Subject: rs600.c (rs6000_builtin_vectorization_cost): Adjust unaligned load cost. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2de1796a6bf6748e1b3d392056761d68df40dbd0;p=gcc.git rs600.c (rs6000_builtin_vectorization_cost): Adjust unaligned load cost. 2016-12-13 Bill Schmidt * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost): Adjust unaligned load cost. From-SVN: r243623 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cbf7b2f466d..dff1b829ce5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-12-13 Bill Schmidt + + * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost): + Adjust unaligned load cost. + 2016-12-13 Uros Bizjak PR target/78794 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 27bae7145ef..042ffc64657 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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;