sched-ebb.c: Use rtx_insn (requires touching sched-int.h and config/c6x/c6x.c)
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 22 Aug 2014 21:10:21 +0000 (21:10 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 22 Aug 2014 21:10:21 +0000 (21:10 +0000)
commit66fcd40c62ed289e13886f11bc66e503456c3f30
treec9a250146197489a8ef70cf05a56ee28c99ae589
parent974c43e9cc0a14d6815d67dfad92f18f23ae6274
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.

From-SVN: r214375
gcc/ChangeLog
gcc/config/c6x/c6x.c
gcc/sched-ebb.c
gcc/sched-int.h