Use rtx_insn for more scheduler things, plus CONST_CAST_RTX_INSN
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Sep 2014 14:51:09 +0000 (14:51 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Sep 2014 14:51:09 +0000 (14:51 +0000)
commit355af2016603a49de8a8c846348f623df82a38ab
treebdd05296616190f64ce7cfbb25db2e8e21c5b630
parent8a779fe5652961d48b276f1c2adaabf681f8568b
Use rtx_insn for more scheduler things, plus CONST_CAST_RTX_INSN

gcc/ChangeLog:
2014-09-05  David Malcolm  <dmalcolm@redhat.com>

* sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
param "insn" from const_rtx to const rtx_insn *.
(sched_get_reverse_condition_uncached): Likewise.
(sched_get_condition_with_rev): Likewise.
(sched_has_condition_p): Likewise.
(sched_insns_conditions_mutex_p): Likewise for both params.
(sched_insn_is_legitimate_for_speculation_p): Likewise for param
"insn"; convert use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
(setup_insn_reg_uses): Move local "list" to be more tightly
scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
its methods for clarity and type-safety.
(sched_analyze_1): Strengthen local "pending" from rtx to
rtx_insn_list *, and local "pending_mem" from rtx to
rtx_expr_list *.  Use methods of each for clarity and type-safety.
(sched_analyze_2): Likewise.
(sched_analyze_insn): Likewise.

* sched-int.h (sched_get_reverse_condition_uncached): Strengthen
param from const_rtx to const rtx_insn *.
(sched_insns_conditions_mutex_p): Likewise for both params.
(sched_insn_is_legitimate_for_speculation_p): Likewise for first
param.

* system.h (CONST_CAST_RTX_INSN): New macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214967 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/sched-deps.c
gcc/sched-int.h
gcc/system.h