graphite-sese-to-poly.c (split_reduction_stmt): Skip debug statements before splittin...
authorAldy Hernandez <aldyh@redhat.com>
Tue, 16 Mar 2010 20:04:04 +0000 (20:04 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Tue, 16 Mar 2010 20:04:04 +0000 (20:04 +0000)
        * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
        statements before splitting block.

From-SVN: r157494

gcc/ChangeLog
gcc/graphite-sese-to-poly.c

index 7f4134c..a160365 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
+
+       * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
+       statements before splitting block.
+
 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * doc/sourcebuild.texi (Testsuites): Fix markup.
index c222b93..83eff2a 100644 (file)
@@ -2466,7 +2466,7 @@ split_reduction_stmt (gimple stmt)
 
   split_block (bb, stmt);
 
-  if (gsi_one_before_end_p (gsi_start_bb (bb)))
+  if (gsi_one_before_end_p (gsi_start_nondebug_bb (bb)))
     return bb;
 
   gsi = gsi_last_bb (bb);