diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-22 18:47:27 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-22 18:47:27 +0000 |
commit | 6fe7b8c2f3d312c875ceb26c6d1b4a2ecf204eee (patch) | |
tree | 3a982d58ef0dcef94cc061bf3bf424e1e88eebcb /gcc/modulo-sched.c | |
parent | b249d45875087c8b0fe5370a58f9ec044c2a41bf (diff) | |
download | gcc-6fe7b8c2f3d312c875ceb26c6d1b4a2ecf204eee.tar.gz |
get_ebb_head_tail works with rtx_insn
gcc/
* sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
"tailp" from rtx * to rtx_insn **.
* ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
from rtx to rtx_insn *.
* haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
"tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
"beg_tail", "end_head", "end_tail", "note", "next", "prev" from
rtx to rtx_insn *.
* modulo-sched.c (const_iteration_count): Strengthen return type
and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
use of NULL_RTX with NULL when working with insns.
(loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
to rtx_insn *.
(sms_schedule): Likewise.
* sched-rgn.c (init_ready_list): Likewise, also for locals
"src_head" and "src_next_tail".
(compute_block_dependences): Likewise.
(free_block_dependencies): Likewise.
(debug_rgn_dependencies): Likewise.
(free_rgn_deps): Likewise.
(compute_priorities): Likewise.
(schedule_region): Likewise.
* sel-sched.c (find_ebb_boundaries): Likewise.
* config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
"insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214352 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/modulo-sched.c')
-rw-r--r-- | gcc/modulo-sched.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c index 1ae7c16f6be..7ac92894fa9 100644 --- a/gcc/modulo-sched.c +++ b/gcc/modulo-sched.c @@ -392,17 +392,17 @@ doloop_register_get (rtx head ATTRIBUTE_UNUSED, rtx tail ATTRIBUTE_UNUSED) /* Check if COUNT_REG is set to a constant in the PRE_HEADER block, so that the number of iterations is a compile-time constant. If so, - return the rtx that sets COUNT_REG to a constant, and set COUNT to + return the rtx_insn that sets COUNT_REG to a constant, and set COUNT to this constant. Otherwise return 0. */ -static rtx +static rtx_insn * const_iteration_count (rtx count_reg, basic_block pre_header, int64_t * count) { - rtx insn; - rtx head, tail; + rtx_insn *insn; + rtx_insn *head, *tail; if (! pre_header) - return NULL_RTX; + return NULL; get_ebb_head_tail (pre_header, pre_header, &head, &tail); @@ -418,10 +418,10 @@ const_iteration_count (rtx count_reg, basic_block pre_header, return insn; } - return NULL_RTX; + return NULL; } - return NULL_RTX; + return NULL; } /* A very simple resource-based lower bound on the initiation interval. @@ -1211,7 +1211,7 @@ loop_single_full_bb_p (struct loop *loop) for (i = 0; i < loop->num_nodes ; i++) { - rtx head, tail; + rtx_insn *head, *tail; bool empty_bb = true; if (bbs[i] == loop->header) @@ -1398,7 +1398,7 @@ sms_schedule (void) indexed by the loop index. */ FOR_EACH_LOOP (loop, 0) { - rtx head, tail; + rtx_insn *head, *tail; rtx count_reg; /* For debugging. */ @@ -1536,7 +1536,7 @@ sms_schedule (void) /* We don't want to perform SMS on new loops - created by versioning. */ FOR_EACH_LOOP (loop, 0) { - rtx head, tail; + rtx_insn *head, *tail; rtx count_reg, count_init; int mii, rec_mii, stage_count, min_cycle; int64_t loop_count = 0; |