This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] graphite/vta minor fix


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)
 	  {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]