* tree-vect-slp.c (vect_build_slp_tree): Check that the size of
interleaved loads group is not greater than the SLP group size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145445
138bc75d-0d04-0410-961f-
82ee72b054a4
+2009-04-02 Ira Rosen <irar@il.ibm.com>
+
+ 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.
+
2009-04-02 Rafael Avila de Espindola <espindola@google.com>
* builtins.c (is_builtin_name): New.
+2009-04-02 Ira Rosen <irar@il.ibm.com>
+
+ PR tree-optimization/39595
+ * gfortran.dg/vect/O3-pr39595.f: New test.
+
2009-04-02 Dodji Seketeli <dodji@redhat.com>
PR c++/26693
--- /dev/null
+! { dg-do compile }
+ subroutine foo(a,c,i,m)
+ real a(4,*),b(3,64),c(3,200),d(64)
+ integer*8 i,j,k,l,m
+ do j=1,m,64
+ do k=1,m-j+1
+ d(k)=a(4,j-1+k)
+ do l=1,3
+ b(l,k)=c(l,i)+a(l,j-1+k)
+ end do
+ end do
+ call bar(b,d,i)
+ end do
+ end
+
+! { dg-final { cleanup-tree-dump "vect" } }
+
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));