diff options
author | Jan Hubicka <jh@suse.cz> | 2003-06-08 21:35:54 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2003-06-08 19:35:54 +0000 |
commit | 0435312e3890ead4503ac3d1c83afc556b39dc39 (patch) | |
tree | 852a6d09fbb544c05a647e6acf28fdbf9741a19d /gcc/ifcvt.c | |
parent | 5d39821d113805e918072e3bb6c91a28a6f66188 (diff) | |
download | gcc-0435312e3890ead4503ac3d1c83afc556b39dc39.zip gcc-0435312e3890ead4503ac3d1c83afc556b39dc39.tar.gz gcc-0435312e3890ead4503ac3d1c83afc556b39dc39.tar.bz2 |
cfglayout.c (insn_scope): New static function
* cfglayout.c (insn_scope): New static function
(block_locators_*, line_locators*, file_locators*): New static varrays.
(scope_to_insns_initialize): Use them.
(insn_line, insn_file): New functions.
(scope_to_insns_finalize): Use insn_scope.
(prologue_locator, epilogue_locator): New global variables.
* emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
make_call_insn_raw, emit_copy_of_insn_after): Use locators.
(emit_insn_after_scope, emit_insn_before_scope
emit_jump_insn_after_scope, emit_jump_insn_before_scope
emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
(emit_insn_after_setloc, emit_insn_before_setloc
emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
use locators.
* final.c (notice_source_line): Use locators.
(final_start_function): Set initial source file and line.
(final_scan_insn): Use locators.
* ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
noce_process_if_block, find_cond_trap): Likewise.
* integrate.c (copy_insn_list): Likewise.
* jump.c (duplicate_loop_exit_test): LIkewise.
* print-rtl.c (print_rtx): Print locators.
* recog.c (peephole2_optimize): Likewise.
* rtl.h (INSN_SCOPE): Remove.
(emit_insn_after_scope, emit_insn_before_scope
emit_jump_insn_after_scope, emit_jump_insn_before_scope
emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
(emit_insn_after_setloc, emit_insn_before_setloc
emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
(insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
* unroll.c (copy_loop_body): Use locators.
* function.c (set_insn_locators): New function.
(thread_prologue_and_epilogue_insns): Set the locators accordingly.
From-SVN: r67637
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 8747906..84788f0 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -718,7 +718,7 @@ noce_try_store_flag (if_info) seq = get_insns (); end_sequence (); - emit_insn_before_scope (seq, if_info->jump, INSN_SCOPE (if_info->insn_a)); + emit_insn_before_setloc (seq, if_info->jump, INSN_LOCATOR (if_info->insn_a)); return TRUE; } @@ -853,7 +853,7 @@ noce_try_store_flag_constants (if_info) if (seq_contains_jump (seq)) return FALSE; - emit_insn_before_scope (seq, if_info->jump, INSN_SCOPE (if_info->insn_a)); + emit_insn_before_setloc (seq, if_info->jump, INSN_LOCATOR (if_info->insn_a)); return TRUE; } @@ -901,8 +901,8 @@ noce_try_addcc (if_info) seq = get_insns (); end_sequence (); - emit_insn_before_scope (seq, if_info->jump, - INSN_SCOPE (if_info->insn_a)); + emit_insn_before_setloc (seq, if_info->jump, + INSN_LOCATOR (if_info->insn_a)); return TRUE; } end_sequence (); @@ -943,8 +943,8 @@ noce_try_addcc (if_info) if (seq_contains_jump (seq)) return FALSE; - emit_insn_before_scope (seq, if_info->jump, - INSN_SCOPE (if_info->insn_a)); + emit_insn_before_setloc (seq, if_info->jump, + INSN_LOCATOR (if_info->insn_a)); return TRUE; } @@ -996,8 +996,8 @@ noce_try_store_flag_mask (if_info) if (seq_contains_jump (seq)) return FALSE; - emit_insn_before_scope (seq, if_info->jump, - INSN_SCOPE (if_info->insn_a)); + emit_insn_before_setloc (seq, if_info->jump, + INSN_LOCATOR (if_info->insn_a)); return TRUE; } @@ -1092,8 +1092,8 @@ noce_try_cmove (if_info) seq = get_insns (); end_sequence (); - emit_insn_before_scope (seq, if_info->jump, - INSN_SCOPE (if_info->insn_a)); + emit_insn_before_setloc (seq, if_info->jump, + INSN_LOCATOR (if_info->insn_a)); return TRUE; } else @@ -1255,7 +1255,7 @@ noce_try_cmove_arith (if_info) tmp = get_insns (); end_sequence (); - emit_insn_before_scope (tmp, if_info->jump, INSN_SCOPE (if_info->insn_a)); + emit_insn_before_setloc (tmp, if_info->jump, INSN_LOCATOR (if_info->insn_a)); return TRUE; end_seq_and_fail: @@ -1507,7 +1507,7 @@ noce_try_minmax (if_info) if (seq_contains_jump (seq)) return FALSE; - emit_insn_before_scope (seq, if_info->jump, INSN_SCOPE (if_info->insn_a)); + emit_insn_before_setloc (seq, if_info->jump, INSN_LOCATOR (if_info->insn_a)); if_info->cond = cond; if_info->cond_earliest = earliest; @@ -1625,7 +1625,7 @@ noce_try_abs (if_info) if (seq_contains_jump (seq)) return FALSE; - emit_insn_before_scope (seq, if_info->jump, INSN_SCOPE (if_info->insn_a)); + emit_insn_before_setloc (seq, if_info->jump, INSN_LOCATOR (if_info->insn_a)); if_info->cond = cond; if_info->cond_earliest = earliest; @@ -1945,7 +1945,7 @@ noce_process_if_block (ce_info) insn_b = get_insns (); end_sequence (); - emit_insn_after_scope (insn_b, test_bb->end, INSN_SCOPE (insn_a)); + emit_insn_after_setloc (insn_b, test_bb->end, INSN_LOCATOR (insn_a)); } /* Merge the blocks! */ @@ -2548,7 +2548,7 @@ find_cond_trap (test_bb, then_edge, else_edge) return FALSE; /* Emit the new insns before cond_earliest. */ - emit_insn_before_scope (seq, cond_earliest, INSN_SCOPE (trap)); + emit_insn_before_setloc (seq, cond_earliest, INSN_LOCATOR (trap)); /* Delete the trap block if possible. */ remove_edge (trap_bb == then_bb ? then_edge : else_edge); |