diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-22 21:10:21 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-22 21:10:21 +0000 |
commit | 43ecfeb5cddf0597bafaa0936c65d0af6693a49f (patch) | |
tree | c9a250146197489a8ef70cf05a56ee28c99ae589 /gcc/config/c6x/c6x.c | |
parent | 9d8bf7331b457b3bd5ae3d8119147e6af46063ec (diff) | |
download | gcc-43ecfeb5cddf0597bafaa0936c65d0af6693a49f.tar.gz |
sched-ebb.c: Use rtx_insn (requires touching sched-int.h and config/c6x/c6x.c)
gcc/
2014-08-22 David Malcolm <dmalcolm@redhat.com>
* sched-int.h (schedule_ebb): Strengthen params "head", "tail"
from rtx to rtx_insn *.
* sched-ebb.c (earliest_block_with_similiar_load): Strengthen
locals "insn1", "insn2" from rtx to rtx_insn *.
(add_deps_for_risky_insns): Likewise for params "head", "tail" and
locals "insn", "prev", "last_jump", "next_tail".
(schedule_ebb): Likewise for params "head", "tail".
(schedule_ebbs): Likewise for locals "tail", "head".
* config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
to rtx_insn on "last_insn" in one of the invocations of
schedule_ebb.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214375 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/c6x/c6x.c')
-rw-r--r-- | gcc/config/c6x/c6x.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/c6x/c6x.c b/gcc/config/c6x/c6x.c index 889031ac9da..99987346555 100644 --- a/gcc/config/c6x/c6x.c +++ b/gcc/config/c6x/c6x.c @@ -5669,7 +5669,9 @@ hwloop_optimize (hwloop_info loop) schedule_ebbs_init (); set_modulo_params (sp_ii, max_parallel, n_real_insns, sploop_max_uid_iter0); - tmp_bb = schedule_ebb (BB_HEAD (bb), last_insn, true); + tmp_bb = schedule_ebb (BB_HEAD (bb), + safe_as_a <rtx_insn *> (last_insn), + true); schedule_ebbs_finish (); if (tmp_bb) |