diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-26 20:39:42 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-26 20:39:42 +0000 |
commit | e149ca56a35fdab1b3eaff221bb4640724e505d4 (patch) | |
tree | f1f8f5ea645933071854d5a1f896591b6d6c283b /gcc/df-scan.c | |
parent | 73e15687cef91ebdd3625f49f1777e0a1efb1e93 (diff) | |
download | gcc-e149ca56a35fdab1b3eaff221bb4640724e505d4.tar.gz |
Remove DF_REF_INSN scaffolding
gcc/
2014-08-26 David Malcolm <dmalcolm@redhat.com>
* df.h (df_dump_insn_problem_function): Strengthen first param of
this callback from const_rtx to const rtx_insn *.
(struct df_insn_info): Strengthen field "insn" from rtx to
rtx_insn *.
(DF_REF_INSN): Eliminate this function, reinstating the older
macro definition.
(df_find_def): Strengthen param 1 from rtx to rtx_insn *.
(df_reg_defined): Likewise.
(df_find_use): Likewise.
(df_reg_used): Likewise.
(df_dump_insn_top): Strengthen param 1 from const_rtx to
const rtx_insn *.
(df_dump_insn_bottom): Likewise.
(df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
(df_insn_debug_regno): Likewise.
(debug_df_insn): Likewise.
(df_rd_simulate_one_insn): Likewise for param 2.
(df_word_lr_simulate_defs): Likewise for param 1.
(df_word_lr_simulate_uses): Likewise.
(df_md_simulate_one_insn): Likewise for param 2.
(df_simulate_find_noclobber_defs): Likewise for param 1.
(df_simulate_find_defs): Likewise.
(df_simulate_defs): Likewise.
(df_simulate_uses): Likewise.
(df_simulate_one_insn_backwards): Likewise for param 2.
(df_simulate_one_insn_forwards): Likewise.
(df_uses_create): Likewise for param 2.
(df_insn_create_insn_record): Likewise for param 1.
(df_insn_delete): Likewise.
(df_insn_rescan): Likewise.
(df_insn_rescan_debug_internal): Likewise.
(df_insn_change_bb): Likewise.
(df_notes_rescan): Likewise.
* rtl.h (remove_death): Likewise for param 2.
(print_rtl_with_bb): Strengthen param 2 from const_rtx to
const rtx_insn *.
* sched-int.h (reemit_notes): Strengthen param from rtx to
rtx_insn *.
* valtrack.h (propagate_for_debug): Likewise for param 1.
* cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
local "tmp_rtx" from const_rtx to const rtx_insn *.
* combine.c (remove_death): Strengthen param "insn" from rtx to
rtx_insn *.
(move_deaths): Likewise for local "where_dead".
* cse.c (delete_trivially_dead_insns): Introduce local
"bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
* df-core.c (df_find_def): Strengthen param "insn" from rtx to
rtx_insn *.
(df_reg_defined): Likewise.
(df_find_use): Likewise.
(df_reg_used): Likewise.
(df_dump_insn_problem_data): Strengthen param "insn" from
const_rtx to const rtx_insn *.
(df_dump_insn_top): Likewise.
(df_dump_insn_bottom): Likewise.
(df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
(df_insn_debug_regno): Likewise.
(debug_df_insn): Likewise.
(DF_REF_INSN): Delete.
* df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
from rtx to rtx_insn *.
(df_chain_insn_top_dump): Strengthen param "insn" from
const_rtx to const rtx_insn *.
(df_chain_insn_bottom_dump): Likewise.
(df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
rtx_insn *.
(df_word_lr_simulate_uses): Likewise.
(df_print_note): Likewise.
(df_remove_dead_and_unused_notes): Likewise.
(df_set_unused_notes_for_mw): Likewise.
(df_set_dead_notes_for_mw): Likewise.
(df_create_unused_note): Likewise.
(df_simulate_find_defs): Likewise.
(df_simulate_find_uses): Likewise.
(df_simulate_find_noclobber_defs): Likewise.
(df_simulate_defs): Likewise.
(df_simulate_uses): Likewise.
(df_simulate_one_insn_backwards): Likewise.
(df_simulate_one_insn_forwards): Likewise.
(df_md_simulate_one_insn): Likewise.
* df-scan.c (df_uses_create): Likewise.
(df_insn_create_insn_record): Likewise.
(df_insn_delete): Likewise.
(df_insn_rescan): Likewise.
(df_insn_rescan_debug_internal): Likewise.
(df_insn_change_bb): Likewise.
(df_notes_rescan): Likewise.
(df_refs_add_to_chains): Likewise.
(df_insn_refs_verify): Likewise.
* emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
when invoking df_insn_delete.
(reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
(set_unique_reg_note): Add checked cast.
* final.c (cleanup_subreg_operands): Likewise.
* gcse.c (update_ld_motion_stores): Likewise, strengthening local
"insn" from rtx to rtx_insn *.
* haifa-sched.c (reemit_notes): Strengthen param "insn" and local
"last" from rtx to rtx_insn *.
* ira-emit.c (change_regs_in_insn): New function.
(change_loop): Strengthen local "insn" from rtx to rtx_insn *.
Invoke change_regs_in_insn rather than change_regs.
* ira.c (update_equiv_regs): Strengthen locals "insn",
"init_insn", "new_insn" from rtx to rtx_insn *. Invoke
for_each_rtx_in_insn rather than for_each_rtx.
* recog.c (confirm_change_group): Add checked casts.
(peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
Add checked cast.
(peep2_fill_buffer): Add checked cast.
* rtlanal.c (remove_note): Likewise.
* valtrack.c (propagate_for_debug): Strengthen param "insn" and
locals "next" "end" from rtx to rtx_insn *.
/
2014-08-26 David Malcolm <dmalcolm@redhat.com>
* rtx-classes-status.txt (TODO): DF_REF_INSN is done.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214548 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/df-scan.c')
-rw-r--r-- | gcc/df-scan.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/gcc/df-scan.c b/gcc/df-scan.c index a8539143da8..e2aaf61a3ee 100644 --- a/gcc/df-scan.c +++ b/gcc/df-scan.c @@ -109,9 +109,10 @@ static void df_ref_chain_delete_du_chain (df_ref); static void df_ref_chain_delete (df_ref); static void df_refs_add_to_chains (struct df_collection_rec *, - basic_block, rtx, unsigned int); + basic_block, rtx_insn *, unsigned int); -static bool df_insn_refs_verify (struct df_collection_rec *, basic_block, rtx, bool); +static bool df_insn_refs_verify (struct df_collection_rec *, basic_block, + rtx_insn *, bool); static void df_entry_block_defs_collect (struct df_collection_rec *, bitmap); static void df_exit_block_uses_collect (struct df_collection_rec *, bitmap); static void df_install_ref (df_ref, struct df_reg_info *, @@ -626,7 +627,7 @@ df_scan_blocks (void) depending on whether LOC is inside PATTERN (INSN) or a note. */ void -df_uses_create (rtx *loc, rtx insn, int ref_flags) +df_uses_create (rtx *loc, rtx_insn *insn, int ref_flags) { gcc_assert (!(ref_flags & ~DF_REF_IN_NOTE)); df_uses_record (NULL, loc, DF_REF_REG_USE, @@ -833,7 +834,7 @@ df_reg_chain_unlink (df_ref ref) out. */ struct df_insn_info * -df_insn_create_insn_record (rtx insn) +df_insn_create_insn_record (rtx_insn *insn) { struct df_scan_problem_data *problem_data = (struct df_scan_problem_data *) df_scan->problem_data; @@ -941,7 +942,7 @@ df_insn_info_delete (unsigned int uid) or marked for later in deferred mode. */ void -df_insn_delete (rtx insn) +df_insn_delete (rtx_insn *insn) { unsigned int uid; basic_block bb; @@ -1027,7 +1028,7 @@ df_free_collection_rec (struct df_collection_rec *collection_rec) /* Rescan INSN. Return TRUE if the rescanning produced any changes. */ bool -df_insn_rescan (rtx insn) +df_insn_rescan (rtx_insn *insn) { unsigned int uid = INSN_UID (insn); struct df_insn_info *insn_info = NULL; @@ -1117,7 +1118,7 @@ df_insn_rescan (rtx insn) dirty. */ bool -df_insn_rescan_debug_internal (rtx insn) +df_insn_rescan_debug_internal (rtx_insn *insn) { unsigned int uid = INSN_UID (insn); struct df_insn_info *insn_info; @@ -1763,7 +1764,7 @@ df_maybe_reorganize_def_refs (enum df_ref_order order) instructions from one block to another. */ void -df_insn_change_bb (rtx insn, basic_block new_bb) +df_insn_change_bb (rtx_insn *insn, basic_block new_bb) { basic_block old_bb = BLOCK_FOR_INSN (insn); struct df_insn_info *insn_info; @@ -1944,7 +1945,7 @@ df_mw_hardreg_chain_delete_eq_uses (struct df_insn_info *insn_info) /* Rescan only the REG_EQUIV/REG_EQUAL notes part of INSN. */ void -df_notes_rescan (rtx insn) +df_notes_rescan (rtx_insn *insn) { struct df_insn_info *insn_info; unsigned int uid = INSN_UID (insn); @@ -2434,7 +2435,7 @@ df_install_mws (const vec<df_mw_hardreg_ptr, va_heap> *old_vec) static void df_refs_add_to_chains (struct df_collection_rec *collection_rec, - basic_block bb, rtx insn, unsigned int flags) + basic_block bb, rtx_insn *insn, unsigned int flags) { if (insn) { @@ -4135,7 +4136,7 @@ df_mws_verify (const vec<df_mw_hardreg_ptr, va_heap> *new_rec, static bool df_insn_refs_verify (struct df_collection_rec *collection_rec, basic_block bb, - rtx insn, + rtx_insn *insn, bool abort_if_fail) { bool ret1, ret2, ret3, ret4; |