------- Additional Comments From steven at gcc dot gnu dot org  2005-07-28 
23:31 -------
Try this, like Richard Earnshaw is doing. 
 
Index: sched-rgn.c 
=================================================================== 
RCS file: /cvs/gcc/gcc/gcc/sched-rgn.c,v 
retrieving revision 1.99 
diff -u -p -r1.99 sched-rgn.c 
--- sched-rgn.c 27 Jul 2005 16:28:34 -0000      1.99 
+++ sched-rgn.c 28 Jul 2005 23:31:29 -0000 
@@ -1977,17 +1977,17 @@ add_branch_dependences (rtx head, rtx ta 
   if (!reload_completed || ! JUMP_P (tail)) 
     return; 
 
-  insn = PREV_INSN (tail); 
+  insn = tail; 
   while (insn != head) 
     { 
+      insn = PREV_INSN (insn); 
+ 
       /* Note that we want to add this dependency even when 
         sched_insns_conditions_mutex_p returns true.  The whole point 
         is that we _want_ this dependency, even if these insns really 
         are independent.  */ 
       if (INSN_P (insn) && GET_CODE (PATTERN (insn)) == COND_EXEC) 
        add_dependence (tail, insn, REG_DEP_ANTI); 
- 
-      insn = PREV_INSN (insn); 
     } 
 #endif 
 } 
 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23117

Reply via email to