diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-09-05 14:51:09 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-09-05 14:51:09 +0000 |
commit | c838c4025c042f455c06f9d202c80a510a52ec63 (patch) | |
tree | bdd05296616190f64ce7cfbb25db2e8e21c5b630 /gcc/sched-int.h | |
parent | 1c9b6043f9e53d7bfb394151eee5a7b25918364b (diff) | |
download | gcc-c838c4025c042f455c06f9d202c80a510a52ec63.zip gcc-c838c4025c042f455c06f9d202c80a510a52ec63.tar.gz gcc-c838c4025c042f455c06f9d202c80a510a52ec63.tar.bz2 |
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.
From-SVN: r214967
Diffstat (limited to 'gcc/sched-int.h')
-rw-r--r-- | gcc/sched-int.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/sched-int.h b/gcc/sched-int.h index 76d4e96..dda394e 100644 --- a/gcc/sched-int.h +++ b/gcc/sched-int.h @@ -1291,9 +1291,10 @@ extern struct sched_deps_info_def *sched_deps_info; /* Functions in sched-deps.c. */ -extern rtx sched_get_reverse_condition_uncached (const_rtx); -extern bool sched_insns_conditions_mutex_p (const_rtx, const_rtx); -extern bool sched_insn_is_legitimate_for_speculation_p (const_rtx, ds_t); +extern rtx sched_get_reverse_condition_uncached (const rtx_insn *); +extern bool sched_insns_conditions_mutex_p (const rtx_insn *, + const rtx_insn *); +extern bool sched_insn_is_legitimate_for_speculation_p (const rtx_insn *, ds_t); extern void add_dependence (rtx_insn *, rtx_insn *, enum reg_note); extern void sched_analyze (struct deps_desc *, rtx_insn *, rtx_insn *); extern void init_deps (struct deps_desc *, bool); |