diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-30 20:46:57 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-30 20:46:57 +0000 |
commit | b19beda97c4c57f1bb86e1be5e538fc833f1711f (patch) | |
tree | 1f8da9ec73c4ebabe1b0846460e0317b29ff02a4 /gcc/jump.c | |
parent | 8c2f247ff71d8a51d05e39acca137bb05a9c69e4 (diff) | |
download | gcc-b19beda97c4c57f1bb86e1be5e538fc833f1711f.tar.gz |
* cfgbuild.c (make_edges): Use tablejump_p.
* cfgcleanup.c (label_is_jump_target_p): Likewise.
* cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
* cfgrtl.c (flow_delete_block_noexpunge): Likewise.
(try_redirect_by_replacing_jump): Likewise.
(redirect_edge_and_branch): Likewise.
* cse.c (fold_rtx): Likewise.
* jump.c (delete_related_insns): Likewise.
* rtlanal.c (get_jump_table_offset): Likewise.
* ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65054 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/jump.c b/gcc/jump.c index 15c9d36618f..6e047908158 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1757,10 +1757,7 @@ delete_related_insns (insn) next = NEXT_INSN (next); return next; } - else if ((lab_next = next_nonnote_insn (lab)) != NULL - && GET_CODE (lab_next) == JUMP_INSN - && (GET_CODE (PATTERN (lab_next)) == ADDR_VEC - || GET_CODE (PATTERN (lab_next)) == ADDR_DIFF_VEC)) + else if (tablejump_p (insn, NULL, &lab_next)) { /* If we're deleting the tablejump, delete the dispatch table. We may not be able to kill the label immediately preceding |