aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/c6x
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-22 21:10:21 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-22 21:10:21 +0000
commit66fcd40c62ed289e13886f11bc66e503456c3f30 (patch)
treec9a250146197489a8ef70cf05a56ee28c99ae589 /gcc/config/c6x
parent974c43e9cc0a14d6815d67dfad92f18f23ae6274 (diff)
downloadgcc-66fcd40c62ed289e13886f11bc66e503456c3f30.zip
gcc-66fcd40c62ed289e13886f11bc66e503456c3f30.tar.gz
gcc-66fcd40c62ed289e13886f11bc66e503456c3f30.tar.bz2
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
Diffstat (limited to 'gcc/config/c6x')
-rw-r--r--gcc/config/c6x/c6x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/c6x/c6x.c b/gcc/config/c6x/c6x.c
index 889031a..9998734 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)