diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-26 19:38:42 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-26 19:38:42 +0000 |
commit | 61aa0978e2caf0417a78289eed85010b0c11be94 (patch) | |
tree | b0e02ec21c8175f7fd91f102947087d8b9e81c7b /gcc/df-problems.c | |
parent | 51c7dd986881a7b414f3f456be0fe1d4ac6b3dd3 (diff) | |
download | gcc-61aa0978e2caf0417a78289eed85010b0c11be94.tar.gz |
Various condition-handling calls
gcc/
2014-08-26 David Malcolm <dmalcolm@redhat.com>
* rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
rtx_insn * and param 4 from rtx * to rtx_insn **.
(get_condition): Strengthen param 1 from rtx to rtx_insn * and
param 2 from rtx * to rtx_insn **.
* df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
rtx_insn * and final param from rtx * to rtx_insn **.
* cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
from rtx to rtx_insn *.
(try_head_merge_bb): Likewise for both locals named "move_upto".
* df-problems.c (can_move_insns_across): Likewise for params
"from", "to", "across_from", "across_to" and locals "insn",
"next", "max_to". Strengthen param "pmove_upto" from rtx * to
rtx_insn **.
* ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
from rtx to rtx_insn *.
(noce_get_alt_condition): Strengthen param "earliest" from rtx *
to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
(noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
rtx_insn *.
(noce_try_abs): Likewise.
(noce_get_condition): Likewise for param "jump". Strengthen param
"earliest" from rtx * to rtx_insn **.
(noce_find_if_block): Strengthen local "cond_earliest" from rtx to
rtx_insn *.
(find_cond_trap): Likewise.
(dead_or_predicable): Likewise for local "earliest".
* loop-iv.c (check_simple_exit): Likewise for local "at". Add
checked cast.
* rtlanal.c (canonicalize_condition): Likewise for param "insn"
and local "prev". Strengthen param "earliest" from rtx * to
rtx_insn **.
(get_condition): Strengthen param "jump" from rtx to rtx_insn *
Strengthen param "earliest" from rtx * to rtx_insn **.
From-SVN: r214542
Diffstat (limited to 'gcc/df-problems.c')
-rw-r--r-- | gcc/df-problems.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/df-problems.c b/gcc/df-problems.c index 65f9b4cb047..305ed5d9da4 100644 --- a/gcc/df-problems.c +++ b/gcc/df-problems.c @@ -3664,11 +3664,12 @@ simulate_backwards_to_point (basic_block bb, regset live, rtx point) is set to point at the last moveable insn in such a case. */ bool -can_move_insns_across (rtx from, rtx to, rtx across_from, rtx across_to, +can_move_insns_across (rtx_insn *from, rtx_insn *to, + rtx_insn *across_from, rtx_insn *across_to, basic_block merge_bb, regset merge_live, - regset other_branch_live, rtx *pmove_upto) + regset other_branch_live, rtx_insn **pmove_upto) { - rtx insn, next, max_to; + rtx_insn *insn, *next, *max_to; bitmap merge_set, merge_use, local_merge_live; bitmap test_set, test_use; unsigned i, fail = 0; @@ -3678,7 +3679,7 @@ can_move_insns_across (rtx from, rtx to, rtx across_from, rtx across_to, bool trapping_insns_in_across = false; if (pmove_upto != NULL) - *pmove_upto = NULL_RTX; + *pmove_upto = NULL; /* Find real bounds, ignoring debug insns. */ while (!NONDEBUG_INSN_P (from) && from != to) @@ -3754,7 +3755,7 @@ can_move_insns_across (rtx from, rtx to, rtx across_from, rtx across_to, the first insn in MERGE that sets a register in TEST_USE, or uses a register in TEST_SET. We also check for calls, trapping operations, and memory references. */ - max_to = NULL_RTX; + max_to = NULL; for (insn = from; ; insn = next) { if (CALL_P (insn)) |