diff options
author | Richard Henderson <rth@redhat.com> | 2003-03-30 12:46:57 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-03-30 12:46:57 -0800 |
commit | e1233a7dc0b2ab2e7d9cb5f0138a9de8f65125e5 (patch) | |
tree | 1f8da9ec73c4ebabe1b0846460e0317b29ff02a4 /gcc/cfgbuild.c | |
parent | 9b703090abb0b72c28ddfe1804d93bc6af5ec6a0 (diff) | |
download | gcc-e1233a7dc0b2ab2e7d9cb5f0138a9de8f65125e5.tar.gz |
cfgbuild.c (make_edges): Use tablejump_p.
* 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.
From-SVN: r65054
Diffstat (limited to 'gcc/cfgbuild.c')
-rw-r--r-- | gcc/cfgbuild.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c index d698f3b057a..889ae9da23d 100644 --- a/gcc/cfgbuild.c +++ b/gcc/cfgbuild.c @@ -343,12 +343,8 @@ make_edges (label_value_list, min, max, update_p) else if (find_reg_note (insn, REG_NON_LOCAL_GOTO, NULL_RTX)) ; - /* ??? Recognize a tablejump and do the right thing. */ - else if ((tmp = JUMP_LABEL (insn)) != NULL_RTX - && (tmp = NEXT_INSN (tmp)) != NULL_RTX - && GET_CODE (tmp) == JUMP_INSN - && (GET_CODE (PATTERN (tmp)) == ADDR_VEC - || GET_CODE (PATTERN (tmp)) == ADDR_DIFF_VEC)) + /* Recognize a tablejump and do the right thing. */ + else if (tablejump_p (insn, NULL, &tmp)) { rtvec vec; int j; |