sched-rgn.c (117395) | sched-rgn.c (119256) |
---|---|
1/* Instruction scheduling pass. 2 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 4 Contributed by Michael Tiemann (tiemann@cygnus.com) Enhanced by, 5 and currently maintained by, Jim Wilson (wilson@cygnus.com) 6 7This file is part of GCC. 8 --- 1953 unchanged lines hidden (view full) --- 1962/* Implementations of the sched_info functions for region scheduling. */ 1963static void init_ready_list PARAMS ((struct ready_list *)); 1964static int can_schedule_ready_p PARAMS ((rtx)); 1965static int new_ready PARAMS ((rtx)); 1966static int schedule_more_p PARAMS ((void)); 1967static const char *rgn_print_insn PARAMS ((rtx, int)); 1968static int rgn_rank PARAMS ((rtx, rtx)); 1969static int contributes_to_priority PARAMS ((rtx, rtx)); | 1/* Instruction scheduling pass. 2 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 4 Contributed by Michael Tiemann (tiemann@cygnus.com) Enhanced by, 5 and currently maintained by, Jim Wilson (wilson@cygnus.com) 6 7This file is part of GCC. 8 --- 1953 unchanged lines hidden (view full) --- 1962/* Implementations of the sched_info functions for region scheduling. */ 1963static void init_ready_list PARAMS ((struct ready_list *)); 1964static int can_schedule_ready_p PARAMS ((rtx)); 1965static int new_ready PARAMS ((rtx)); 1966static int schedule_more_p PARAMS ((void)); 1967static const char *rgn_print_insn PARAMS ((rtx, int)); 1968static int rgn_rank PARAMS ((rtx, rtx)); 1969static int contributes_to_priority PARAMS ((rtx, rtx)); |
1970static void compute_jump_reg_dependencies PARAMS ((rtx, regset)); | 1970static void compute_jump_reg_dependencies PARAMS ((rtx, regset, regset, 1971 regset)); |
1971 1972/* Return nonzero if there are more insns that should be scheduled. */ 1973 1974static int 1975schedule_more_p () 1976{ 1977 return ! last_was_jump && sched_target_n_insns < target_n_insns; 1978} --- 270 unchanged lines hidden (view full) --- 2249 2250static int 2251contributes_to_priority (next, insn) 2252 rtx next, insn; 2253{ 2254 return BLOCK_NUM (next) == BLOCK_NUM (insn); 2255} 2256 | 1972 1973/* Return nonzero if there are more insns that should be scheduled. */ 1974 1975static int 1976schedule_more_p () 1977{ 1978 return ! last_was_jump && sched_target_n_insns < target_n_insns; 1979} --- 270 unchanged lines hidden (view full) --- 2250 2251static int 2252contributes_to_priority (next, insn) 2253 rtx next, insn; 2254{ 2255 return BLOCK_NUM (next) == BLOCK_NUM (insn); 2256} 2257 |
2257/* INSN is a JUMP_INSN. Store the set of registers that must be considered 2258 to be set by this jump in SET. */ | 2258/* INSN is a JUMP_INSN, COND_SET is the set of registers that are 2259 conditionally set before INSN. Store the set of registers that 2260 must be considered as used by this jump in USED and that of 2261 registers that must be considered as set in SET. */ |
2259 2260static void | 2262 2263static void |
2261compute_jump_reg_dependencies (insn, set) | 2264compute_jump_reg_dependencies (insn, cond_set, used, set) |
2262 rtx insn ATTRIBUTE_UNUSED; | 2265 rtx insn ATTRIBUTE_UNUSED; |
2266 regset cond_set ATTRIBUTE_UNUSED; 2267 regset used ATTRIBUTE_UNUSED; |
|
2263 regset set ATTRIBUTE_UNUSED; 2264{ 2265 /* Nothing to do here, since we postprocess jumps in 2266 add_branch_dependences. */ 2267} 2268 2269/* Used in schedule_insns to initialize current_sched_info for scheduling 2270 regions (or single basic blocks). */ --- 849 unchanged lines hidden --- | 2268 regset set ATTRIBUTE_UNUSED; 2269{ 2270 /* Nothing to do here, since we postprocess jumps in 2271 add_branch_dependences. */ 2272} 2273 2274/* Used in schedule_insns to initialize current_sched_info for scheduling 2275 regions (or single basic blocks). */ --- 849 unchanged lines hidden --- |