diff options
author | Ira Rosen <irar@il.ibm.com> | 2009-04-02 12:39:28 +0000 |
---|---|---|
committer | Ira Rosen <irar@gcc.gnu.org> | 2009-04-02 12:39:28 +0000 |
commit | 2f0fa28e1f7c64c4e0f352dfd97b02de06c6e94b (patch) | |
tree | 371fec7a7015b77218a0b409cfefc05f54e3c921 /gcc/tree-vect-slp.c | |
parent | bbf7ce1102df37e77231586abee685e96c19f25c (diff) | |
download | gcc-2f0fa28e1f7c64c4e0f352dfd97b02de06c6e94b.zip gcc-2f0fa28e1f7c64c4e0f352dfd97b02de06c6e94b.tar.gz gcc-2f0fa28e1f7c64c4e0f352dfd97b02de06c6e94b.tar.bz2 |
re PR tree-optimization/39595 (ICE in vectorizable_store at tree-vect-transform.c:5361)
PR tree-optimization/39595
* tree-vect-slp.c (vect_build_slp_tree): Check that the size of
interleaved loads group is not greater than the SLP group size.
From-SVN: r145445
Diffstat (limited to 'gcc/tree-vect-slp.c')
-rw-r--r-- | gcc/tree-vect-slp.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index fe01a76..60478e9 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -466,6 +466,22 @@ vect_build_slp_tree (loop_vec_info loop_vinfo, slp_tree *node, return false; } + + /* Check that the size of interleaved loads group is not + greater than the SLP group size. */ + if (DR_GROUP_SIZE (vinfo_for_stmt (stmt)) + > ncopies * group_size) + { + if (vect_print_dump_info (REPORT_SLP)) + { + fprintf (vect_dump, "Build SLP failed: the number of " + "interleaved loads is greater than" + " the SLP group size "); + print_gimple_stmt (vect_dump, stmt, 0, TDF_SLIM); + } + + return false; + } first_load = DR_GROUP_FIRST_DR (vinfo_for_stmt (stmt)); |