diff options
author | David Malcolm <dmalcolm@redhat.com> | 2018-06-18 19:59:13 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2018-06-18 19:59:13 +0000 |
commit | df0b55f090b8591746d350a474d5f2291a9202be (patch) | |
tree | 0a714cfc52fe9bad9e338c70d9b72c2c29f67824 /gcc/config/frv | |
parent | 6a8886e45f7eb6684f4e27b9d823ea3d02df787c (diff) | |
download | gcc-df0b55f090b8591746d350a474d5f2291a9202be.zip gcc-df0b55f090b8591746d350a474d5f2291a9202be.tar.gz gcc-df0b55f090b8591746d350a474d5f2291a9202be.tar.bz2 |
More rtx to rtx_insn * cleanups
gcc/ChangeLog:
* config/frv/frv-protos.h (frv_ifcvt_modify_insn): Strengthen 3rd
param from rtx to rtx_insn *.
* config/frv/frv.c (frv_ifcvt_add_insn): Likewise for "insn"
param.
(frv_ifcvt_modify_insn): Likwise.
(frv_ifcvt_modify_final): Likwise for local "existing_insn",
adding an as_a <rtx_insn *> cast. Likewise for local "insn".
* config/mips/mips.c (r10k_insert_cache_barriers): Add an
as_a <rtx_insn *> cast to local "unprotected_region" once
it's been established that it's not NULL or pc_rtx.
* config/nds32/nds32-relax-opt.c (nds32_group_insns): Strengthen
param "sethi" from rtx to rtx_insn *.
(nds32_group_float_insns): Likewise for param "insn".
* config/vax/vax-protos.h (vax_output_int_add): Likewise for 1st
param.
(vax_output_int_subtract): Likewise.
* config/vax/vax.c (vax_output_int_add): Likewise for param
"insn".
(vax_output_int_subtract): Likewise.
* emit-rtl.c (set_insn_deleted): Likewise, removing cast.
(emit_pattern_after): Likewise for param "after".
(emit_insn_after): Likewise.
(emit_jump_insn_after): Likewise.
(emit_call_insn_after): Likewise.
(emit_debug_insn_after): Likewise.
(emit_pattern_before): Likewise for param "before".
(emit_insn_before): Likewise.
(emit_jump_insn_before): Likewise.
* final.c (get_insn_template): Likewise for param "insn", removing
a cast.
* output.h (get_insn_template): Likewise for 2nd param.
* rtl.h (emit_insn_before): Likewise.
(emit_jump_insn_before): Likewise.
(emit_debug_insn_before_noloc): Likewise.
(emit_insn_after): Likewise.
(emit_jump_insn_after): Likewise.
(emit_call_insn_after): Likewise.
(emit_debug_insn_after): Likewise.
(set_insn_deleted): Likewise for param.
From-SVN: r261715
Diffstat (limited to 'gcc/config/frv')
-rw-r--r-- | gcc/config/frv/frv-protos.h | 2 | ||||
-rw-r--r-- | gcc/config/frv/frv.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gcc/config/frv/frv-protos.h b/gcc/config/frv/frv-protos.h index 7a83569..67c4b09 100644 --- a/gcc/config/frv/frv-protos.h +++ b/gcc/config/frv/frv-protos.h @@ -67,7 +67,7 @@ extern void frv_ifcvt_modify_tests (struct ce_if_block *, rtx *, rtx *); extern void frv_ifcvt_modify_multiple_tests (struct ce_if_block *, basic_block, rtx *, rtx *); -extern rtx frv_ifcvt_modify_insn (struct ce_if_block *, rtx, rtx); +extern rtx frv_ifcvt_modify_insn (struct ce_if_block *, rtx, rtx_insn *); extern void frv_ifcvt_modify_final (struct ce_if_block *); extern void frv_ifcvt_modify_cancel (struct ce_if_block *); #endif diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index 56027bd..78f1a80 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -318,7 +318,7 @@ static rtx frv_expand_mwtacc_builtin (enum insn_code, tree); static rtx frv_expand_noargs_builtin (enum insn_code); static void frv_split_iacc_move (rtx, rtx); static rtx frv_emit_comparison (enum rtx_code, rtx, rtx); -static void frv_ifcvt_add_insn (rtx, rtx, int); +static void frv_ifcvt_add_insn (rtx, rtx_insn *, int); static rtx frv_ifcvt_rewrite_mem (rtx, machine_mode, rtx); static rtx frv_ifcvt_load_value (rtx, rtx); static unsigned int frv_insn_unit (rtx_insn *); @@ -5160,7 +5160,7 @@ frv_ifcvt_machdep_init (void *ce_info ATTRIBUTE_UNUSED) if the conditional execution conversion is successful. */ static void -frv_ifcvt_add_insn (rtx pattern, rtx insn, int before_p) +frv_ifcvt_add_insn (rtx pattern, rtx_insn *insn, int before_p) { rtx link = alloc_EXPR_LIST (VOIDmode, pattern, insn); @@ -5842,7 +5842,7 @@ single_set_pattern (rtx pattern) rtx frv_ifcvt_modify_insn (ce_if_block *ce_info, rtx pattern, - rtx insn) + rtx_insn *insn) { rtx orig_ce_pattern = pattern; rtx set; @@ -6106,7 +6106,7 @@ frv_ifcvt_modify_insn (ce_if_block *ce_info, void frv_ifcvt_modify_final (ce_if_block *ce_info ATTRIBUTE_UNUSED) { - rtx existing_insn; + rtx_insn *existing_insn; rtx check_insn; rtx p = frv_ifcvt.added_insns_list; int i; @@ -6121,7 +6121,7 @@ frv_ifcvt_modify_final (ce_if_block *ce_info ATTRIBUTE_UNUSED) rtx old_p = p; check_insn = XEXP (check_and_insert_insns, 0); - existing_insn = XEXP (check_and_insert_insns, 1); + existing_insn = as_a <rtx_insn *> (XEXP (check_and_insert_insns, 1)); p = XEXP (p, 1); /* The jump bit is used to say that the new insn is to be inserted BEFORE @@ -6142,7 +6142,7 @@ frv_ifcvt_modify_final (ce_if_block *ce_info ATTRIBUTE_UNUSED) /* Load up any constants needed into temp gprs */ for (i = 0; i < frv_ifcvt.cur_scratch_regs; i++) { - rtx insn = emit_insn_before (frv_ifcvt.scratch_regs[i], existing_insn); + rtx_insn *insn = emit_insn_before (frv_ifcvt.scratch_regs[i], existing_insn); if (! frv_ifcvt.scratch_insns_bitmap) frv_ifcvt.scratch_insns_bitmap = BITMAP_ALLOC (NULL); bitmap_set_bit (frv_ifcvt.scratch_insns_bitmap, INSN_UID (insn)); |