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]

[vta] set correct dep type for debug insns in modulo-sched


We check that debug insns' dependencies are always anti-deps elsewhere,
but this piece of code didn't honor this property.  Now it does.
Installing in the branch.

for  gcc/ChangeLog.vta
from  Alexandre Oliva  <aoliva@redhat.com>

	* ddg.c (add_cross_iteration_register_deps): Change dep type
	for debug insns.

Index: gcc/ddg.c
===================================================================
--- gcc/ddg.c.orig	2008-12-10 02:40:09.000000000 -0200
+++ gcc/ddg.c	2008-12-15 02:26:17.000000000 -0200
@@ -283,7 +283,8 @@ add_cross_iteration_register_deps (ddg_p
 	  /* Add true deps from last_def to it's uses in the next
 	     iteration.  Any such upwards exposed use appears before
 	     the last_def def.  */
-	  create_ddg_dep_no_link (g, last_def_node, use_node, TRUE_DEP,
+	  create_ddg_dep_no_link (g, last_def_node, use_node,
+				  DEBUG_INSN_P (use_insn) ? ANTI_DEP : TRUE_DEP,
 				  REG_DEP, 1);
 	}
       else if (!DEBUG_INSN_P (use_insn))
-- 
Alexandre Oliva           http://www.lsd.ic.unicamp.br/~oliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer

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