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]

Minor haifa fix



We weren't returning some INSN_LIST nodes back to the cache.  Tsk tsk.

        * haifa-sched.c (sched_analyze): Use free_INSN_LIST_list instead of
        zapping the LOG_LINKS of sched_before_next_call.

Index: haifa-sched.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/haifa-sched.c,v
retrieving revision 1.109
diff -c -3 -p -r1.109 haifa-sched.c
*** haifa-sched.c	1999/09/16 21:00:19	1.109
--- haifa-sched.c	1999/09/18 12:03:19
*************** sched_analyze (head, tail)
*** 3899,3905 ****
  	      add_dependence (insn, XEXP (x, 0), REG_DEP_ANTI);
  	      x = XEXP (x, 1);
  	    }
! 	  LOG_LINKS (sched_before_next_call) = 0;
  
  	  sched_analyze_insn (PATTERN (insn), insn, loop_notes);
  	  loop_notes = 0;
--- 3899,3905 ----
  	      add_dependence (insn, XEXP (x, 0), REG_DEP_ANTI);
  	      x = XEXP (x, 1);
  	    }
! 	  free_INSN_LIST_list (&LOG_LINKS (sched_before_next_call));
  
  	  sched_analyze_insn (PATTERN (insn), insn, loop_notes);
  	  loop_notes = 0;




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