diff options
author | Richard Henderson <rth@cygnus.com> | 2001-07-18 10:11:11 -0700 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2001-07-18 17:11:11 +0000 |
commit | 0728902f90acc1f79eecea7b6715bc1022c7f7c8 (patch) | |
tree | dc545ee97f3d0bb608afc67d322814c81f69c353 /gcc/jump.c | |
parent | 02d92e3b707a5433814ca22aab53da2d229dc3e1 (diff) | |
download | gcc-0728902f90acc1f79eecea7b6715bc1022c7f7c8.zip gcc-0728902f90acc1f79eecea7b6715bc1022c7f7c8.tar.gz gcc-0728902f90acc1f79eecea7b6715bc1022c7f7c8.tar.bz2 |
flow.c (redirect_edge_and_branch): Bail out on complex edges.
* flow.c (redirect_edge_and_branch): Bail out on complex edges.
(try_optimize_cfg): Do not remove tail recursive labels before sibcall.
* jump.c (mark_jump_label): Do not forward branches.
Co-Authored-By: Jan Hubicka <jh@suse.cz>
From-SVN: r44118
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 40 |
1 files changed, 0 insertions, 40 deletions
@@ -1999,8 +1999,6 @@ mark_jump_label (x, insn, in_mem) case LABEL_REF: { rtx label = XEXP (x, 0); - rtx olabel = label; - rtx next; /* Ignore remaining references to unreachable labels that have been deleted. */ @@ -2015,23 +2013,6 @@ mark_jump_label (x, insn, in_mem) if (LABEL_REF_NONLOCAL_P (x)) break; - /* If there are other labels following this one, - replace it with the last of the consecutive labels. */ - for (next = NEXT_INSN (label); next; next = NEXT_INSN (next)) - { - if (GET_CODE (next) == CODE_LABEL) - label = next; - else if (GET_CODE (next) != NOTE) - break; - else if ((NOTE_LINE_NUMBER (next) == NOTE_INSN_LOOP_BEG - || NOTE_LINE_NUMBER (next) == NOTE_INSN_FUNCTION_END - /* ??? Optional. Disables some optimizations, but - makes gcov output more accurate with -O. */ - || (flag_test_coverage - && NOTE_LINE_NUMBER (next) > 0))) - break; - } - XEXP (x, 0) = label; if (! insn || ! INSN_DELETED_P (insn)) ++LABEL_NUSES (label); @@ -2042,27 +2023,6 @@ mark_jump_label (x, insn, in_mem) JUMP_LABEL (insn) = label; else { - /* If we've changed the label, update notes accordingly. */ - if (label != olabel) - { - rtx note; - - /* We may have a REG_LABEL note to indicate that this - instruction uses the label. */ - note = find_reg_note (insn, REG_LABEL, olabel); - if (note) - XEXP (note, 0) = label; - - /* We may also have a REG_EQUAL note to indicate that - a register is being set to the address of the - label. */ - note = find_reg_note (insn, REG_EQUAL, NULL_RTX); - if (note - && GET_CODE (XEXP (note, 0)) == LABEL_REF - && XEXP (XEXP (note, 0), 0) == olabel) - XEXP (XEXP (note, 0), 0) = label; - } - /* Add a REG_LABEL note for LABEL unless there already is one. All uses of a label, except for labels that are the targets of jumps, must have a |