From 2f0fa28e1f7c64c4e0f352dfd97b02de06c6e94b Mon Sep 17 00:00:00 2001 From: Ira Rosen Date: Thu, 2 Apr 2009 12:39:28 +0000 Subject: 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 --- gcc/tree-vect-slp.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gcc/tree-vect-slp.c') 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)); -- cgit v1.1