diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-22 19:28:23 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-22 19:28:23 +0000 |
commit | ebc94641ff3e0c2c1b02d02147eb2738c86577e3 (patch) | |
tree | ce100096d41a38847cdcf3bd954b2e8fbcdd6bd2 /gcc/optabs.c | |
parent | a8cb6ebcf2203cf9456618c144b2daf0572c46e9 (diff) | |
download | gcc-ebc94641ff3e0c2c1b02d02147eb2738c86577e3.tar.gz |
PR rtl-optimization/33644
* cfgcleanup.c: Do not include dce.h.
* cfgrtl.c (delete_insn_chain_and_edges): Resurrect.
* combine.c (distribute_notes): Delete REG_LIBCALL_ID case.
* dce.c (something_changed): Delete.
(libcall_dead_p): New predicate.
(delete_unmarked_insns): Use it to delete dead libcalls.
Deal with REG_LIBCALL and REG_RETVAL notes.
(prescan_libcall_for_dce): New function.
(prescan_insns_for_dce): Use it to deal with libcalls.
(mark_reg_dependencies): Do nothing special for libcalls.
(dce_process_block): Likewise.
(fast_dce): Delete unused local variable.
(run_fast_dce): Do not return a value.
* dce.h (struct df): Delete.
(run_fast_dce): Adjust prototype.
* optabs.c (libcall_id): Delete.
(maybe_encapsulate_block): Do not emit REG_LIBCALL_ID notes.
(emit_no_conflict_block): Do not look for REG_LIBCALL_ID notes.
* reload1.c (reload): Delete REG_LIBCALL_ID case.
* rtl.h (delete_insn_chain_and_edges): Resurrect prototype.
* see.c (see_update_relevancy): Look for REG_LIBCALL and REG_RETVAL
notes instead of REG_LIBCALL_ID notes.
* reg-notes.def (LIBCALL_ID): Delete.
* Makefile.in (see.o): Add dce.h dependency.
(cfgcleanup.o): Remove dce.h dependency.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129556 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 7f2b5642ad7..3344b2cfa66 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -99,10 +99,6 @@ static void prepare_float_lib_cmp (rtx *, rtx *, enum rtx_code *, enum machine_mode *, int *); static rtx expand_unop_direct (enum machine_mode, optab, rtx, rtx, int); -/* Current libcall id. It doesn't matter what these are, as long - as they are unique to each libcall that is emitted. */ -static HOST_WIDE_INT libcall_id = 0; - /* Debug facility for use in GDB. */ void debug_optab_libfuncs (void); @@ -3824,12 +3820,6 @@ maybe_encapsulate_block (rtx first, rtx last, rtx equiv) REG_NOTES (first)); REG_NOTES (last) = gen_rtx_INSN_LIST (REG_RETVAL, first, REG_NOTES (last)); - next = NEXT_INSN (last); - for (insn = first; insn != next; insn = NEXT_INSN (insn)) - REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_LIBCALL_ID, - GEN_INT (libcall_id), - REG_NOTES (insn)); - libcall_id++; } } } @@ -3890,8 +3880,6 @@ emit_no_conflict_block (rtx insns, rtx target, rtx op0, rtx op1, rtx equiv) remove_note (insn, note); if ((note = find_reg_note (insn, REG_RETVAL, NULL)) != NULL) remove_note (insn, note); - if ((note = find_reg_note (insn, REG_LIBCALL_ID, NULL)) != NULL) - remove_note (insn, note); data.target = target; data.first = insns; @@ -4044,8 +4032,6 @@ emit_libcall_block (rtx insns, rtx target, rtx result, rtx equiv) remove_note (insn, note); if ((note = find_reg_note (insn, REG_RETVAL, NULL)) != NULL) remove_note (insn, note); - if ((note = find_reg_note (insn, REG_LIBCALL_ID, NULL)) != NULL) - remove_note (insn, note); next = NEXT_INSN (insn); |