aboutsummaryrefslogtreecommitdiff
path: root/gcc/targhooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r--gcc/targhooks.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/targhooks.c b/gcc/targhooks.c
index d87d6c7..171583d 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -1175,6 +1175,15 @@ default_vector_alignment (const_tree type)
return align;
}
+/* The default implementation of
+ TARGET_VECTORIZE_PREFERRED_VECTOR_ALIGNMENT. */
+
+HOST_WIDE_INT
+default_preferred_vector_alignment (const_tree type)
+{
+ return TYPE_ALIGN (type);
+}
+
/* By default assume vectors of element TYPE require a multiple of the natural
alignment of TYPE. TYPE is naturally aligned if IS_PACKED is false. */
bool