This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] graphite/vta minor fix
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: jakub at redhat dot com, aoliva at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 Mar 2010 14:58:52 -0400
- Subject: [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)
{