summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-slp.c
diff options
context:
space:
mode:
authorirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-18 12:20:34 +0000
committerirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-18 12:20:34 +0000
commit4cfb69c8e9749f2d73296dbb753a7276afe78858 (patch)
tree1168143211cca644eab9114f3b94c6a3112efab8 /gcc/tree-vect-slp.c
parent7203f8f0f9065b1201478f93bfa3557d24f59859 (diff)
downloadgcc-4cfb69c8e9749f2d73296dbb753a7276afe78858.tar.gz
PR tree-optimization/43771
* tree-vect-slp.c (vect_supported_load_permutation_p): Check that load permutation doesn't have gaps. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158484 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-slp.c')
-rw-r--r--gcc/tree-vect-slp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index d25d34787e0..afc4f311078 100644
--- a/gcc/tree-vect-slp.c
+++ b/gcc/tree-vect-slp.c
@@ -844,7 +844,11 @@ vect_supported_load_permutation_p (slp_instance slp_instn, int group_size,
SET_BIT (load_index, prev);
}
-
+
+ for (j = 0; j < group_size; j++)
+ if (!TEST_BIT (load_index, j))
+ return false;
+
sbitmap_free (load_index);
if (supported && i == group_size * group_size