This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, rs6000] Cost model adjustment
- From: Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Segher Boessenkool <segher at kernel dot crashing dot org>, David Edelsohn <dje dot gcc at gmail dot com>
- Date: Tue, 13 Dec 2016 11:13:08 -0600
- Subject: [PATCH, rs6000] Cost model adjustment
- Authentication-results: sourceware.org; auth=none
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 <wschmidt@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;