From 356c23b3059cc4516ee59c51ab0947a4308624ac Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Thu, 9 Jul 2009 18:15:22 +0000 Subject: haifa-sched.c (insn_finishes_cycle_p): New static function. * haifa-sched.c (insn_finishes_cycle_p): New static function. (max_issue): Use it. * sched-int.h (struct sched_info: insn_finishes_block_p): New scheduler hook. * sched-rgn.c (rgn_insn_finishes_block_p): Implement it. (region_sched_info): Update. * sched-ebb.c (ebb_sched_info): Update. * modulo-sched.c (sms_sched_info): Update. * sel-sched-ir.c (sched_sel_haifa_sched_info): Update. From-SVN: r149427 --- gcc/sched-int.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/sched-int.h') diff --git a/gcc/sched-int.h b/gcc/sched-int.h index 1b6a034..aa5007b 100644 --- a/gcc/sched-int.h +++ b/gcc/sched-int.h @@ -570,6 +570,10 @@ struct haifa_sched_info calculations. */ int (*contributes_to_priority) (rtx, rtx); + /* Return true if scheduling insn (passed as the parameter) will trigger + finish of scheduling current block. */ + bool (*insn_finishes_block_p) (rtx); + /* The boundaries of the set of insns to be scheduled. */ rtx prev_head, next_tail; -- cgit v1.1