[patch] graphite/vta minor fix

Aldy Hernandez aldyh@redhat.com
Mon Mar 15 19:03:00 GMT 2010


There are three graphite failures when running with -fcompare-debug:

	        gcc.dg/graphite/pr42205-1.c
		gcc.dg/graphite/pr42914.c
		gcc.dg/graphite/run-id-4.c

The following patch fixes them all.

OK for trunk?

	* graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
	debug statements.

Index: graphite-sese-to-poly.c
===================================================================
--- graphite-sese-to-poly.c	(revision 157458)
+++ graphite-sese-to-poly.c	(working copy)
@@ -2366,7 +2366,8 @@ rewrite_cross_bb_scalar_deps (sese regio
 
   FOR_EACH_IMM_USE_STMT (use_stmt, imm_iter, def)
     if (def_bb != gimple_bb (use_stmt)
-	&& gimple_code (use_stmt) != GIMPLE_PHI)
+	&& gimple_code (use_stmt) != GIMPLE_PHI
+	&& !is_gimple_debug (use_stmt))
       {
 	if (!zero_dim_array)
 	  {



More information about the Gcc-patches mailing list