diff options
author | Ira Rosen <irar@il.ibm.com> | 2010-04-18 12:20:34 +0000 |
---|---|---|
committer | Ira Rosen <irar@gcc.gnu.org> | 2010-04-18 12:20:34 +0000 |
commit | 59eefaa6dfaac01e645dadf727f25775f5d3aeed (patch) | |
tree | 1168143211cca644eab9114f3b94c6a3112efab8 /gcc/tree-vect-slp.c | |
parent | 07b3ef2e78bde9831e45dbf4d83cec9a440ce585 (diff) | |
download | gcc-59eefaa6dfaac01e645dadf727f25775f5d3aeed.tar.gz |
re PR tree-optimization/43771 (ICE on valid when compiling ParMetis with gcc 4.5.0 and -O3)
PR tree-optimization/43771
* tree-vect-slp.c (vect_supported_load_permutation_p): Check that
load permutation doesn't have gaps.
From-SVN: r158484
Diffstat (limited to 'gcc/tree-vect-slp.c')
-rw-r--r-- | gcc/tree-vect-slp.c | 6 |
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 |