From 2de1796a6bf6748e1b3d392056761d68df40dbd0 Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Tue, 13 Dec 2016 20:05:10 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 3 +++ 2 files changed, 8 insertions(+) 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; -- 2.30.2