summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-transform.c
diff options
context:
space:
mode:
authorirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-05 07:47:49 +0000
committerirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-05 07:47:49 +0000
commit960a79c42a74ed711ed7fe15829f0f4fb8578616 (patch)
tree98ef947137edf3e0bf32eafe3f4091018ee32ae2 /gcc/tree-vect-transform.c
parent7309a3bb7da86799354cecd19791bd96c0065c75 (diff)
downloadgcc-960a79c42a74ed711ed7fe15829f0f4fb8578616.tar.gz
PR tree-optimization/36119
* tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1 in case of SLP. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134944 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-transform.c')
-rw-r--r--gcc/tree-vect-transform.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-vect-transform.c b/gcc/tree-vect-transform.c
index 6168fdab74d..7c5b68e0fdf 100644
--- a/gcc/tree-vect-transform.c
+++ b/gcc/tree-vect-transform.c
@@ -3668,6 +3668,11 @@ vectorizable_assignment (tree stmt, block_stmt_iterator *bsi, tree *vec_stmt,
VEC(tree,heap) *vec_oprnds = NULL;
tree vop;
+ /* FORNOW: SLP with multiple types is not supported. The SLP analysis
+ verifies this, so we can safely override NCOPIES with 1 here. */
+ if (slp_node)
+ ncopies = 1;
+
gcc_assert (ncopies >= 1);
if (ncopies > 1)
return false; /* FORNOW */