Hi, This patch makes a slight adjustment to the vectorization cost model that was previously overlooked.
Bootstrapped and tested on powerpc64le-unknown-linux gnu with no regressions. Ok for trunk? Thanks, Bill 2016-12-13 Bill Schmidt <wschm...@linux.vnet.ibm.com> * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost): Adjust unaligned load cost. Index: gcc/config/rs6000/rs6000.c =================================================================== --- gcc/config/rs6000/rs6000.c (revision 243578) +++ gcc/config/rs6000/rs6000.c (working copy) @@ -5358,6 +5358,9 @@ rs6000_builtin_vectorization_cost (enum vect_cost_ return 3; case unaligned_load: + if (TARGET_P9_VECTOR) + return 3; + if (TARGET_EFFICIENT_UNALIGNED_VSX) return 1;