aboutsummaryrefslogtreecommitdiff
path: root/gcc/hooks.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2009-11-26 01:52:19 +0000
committerRichard Henderson <rth@redhat.com>2009-11-26 01:52:19 +0000
commit3495cbc1cad515c3b70e47c0c12a0919741732a5 (patch)
tree9f56190fd9a03a09fedb53a42e51c8395d059720 /gcc/hooks.c
parentbec9e16fe108f3a8cb4d6b204c2b7eb1650792b5 (diff)
* target.h (targetm.vectorize.builtin_vec_perm_ok): New.
* target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New. * hooks.h, hooks.c (hook_bool_tree_tree_true): New. * tree-vect-slp.c (vect_create_mask_and_perm): Don't create the vector constant here... (vect_transform_slp_perm_load): ... do it here instead. Validate that the permutation vector is implementable by the target. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@154665 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r--gcc/hooks.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c
index ccbce01ac85..fd3c837fffe 100644
--- a/gcc/hooks.c
+++ b/gcc/hooks.c
@@ -221,6 +221,12 @@ hook_bool_tree_tree_false (tree a ATTRIBUTE_UNUSED, tree b ATTRIBUTE_UNUSED)
}
bool
+hook_bool_tree_tree_true (tree a ATTRIBUTE_UNUSED, tree b ATTRIBUTE_UNUSED)
+{
+ return true;
+}
+
+bool
hook_bool_tree_bool_false (tree a ATTRIBUTE_UNUSED, bool b ATTRIBUTE_UNUSED)
{
return false;