diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-06-30 20:57:21 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-06-30 20:57:21 +0000 |
commit | ec4a505ff54c848fd4d71c7d121482c65e7b5ce7 (patch) | |
tree | 94872a118d6391a231578638be484845e405fcb0 /gcc/bb-reorder.c | |
parent | 20fceb31cd7e622b5a4d575249858da92d1fd79b (diff) | |
download | gcc-ec4a505ff54c848fd4d71c7d121482c65e7b5ce7.zip gcc-ec4a505ff54c848fd4d71c7d121482c65e7b5ce7.tar.gz gcc-ec4a505ff54c848fd4d71c7d121482c65e7b5ce7.tar.bz2 |
target-insns.def (jump): New targetm instruction pattern.
gcc/
* target-insns.def (jump): New targetm instruction pattern.
* bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
instead of gen_jump.
(fix_up_crossing_landing_pad): Likewise.
(add_labels_and_missing_jumps): Likewise.
(fix_crossing_conditional_branches): Likewise.
* cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
(force_nonfallthru_and_redirect): Likewise.
* cse.c (cse_insn): Likewise.
* expmed.c (expand_divmod): Likewise.
* expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
* haifa-sched.c (init_before_recovery): Likewise.
(sched_create_recovery_edges): Likewise.
* ifcvt.c (find_cond_trap): Likewise.
* optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
(expand_float, expand_fix): Likewise.
* stmt.c (emit_jump): Likewise.
From-SVN: r225211
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r-- | gcc/bb-reorder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index dd98527..84c9152 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -1385,7 +1385,7 @@ get_uncond_jump_length (void) start_sequence (); rtx_code_label *label = emit_label (gen_label_rtx ()); - rtx_insn *jump = emit_jump_insn (gen_jump (label)); + rtx_insn *jump = emit_jump_insn (targetm.gen_jump (label)); length = get_attr_min_length (jump); end_sequence (); @@ -1420,7 +1420,7 @@ fix_up_crossing_landing_pad (eh_landing_pad old_lp, basic_block old_bb) post_bb = BLOCK_FOR_INSN (old_lp->landing_pad); post_bb = single_succ (post_bb); rtx_code_label *post_label = block_label (post_bb); - jump = emit_jump_insn (gen_jump (post_label)); + jump = emit_jump_insn (targetm.gen_jump (post_label)); JUMP_LABEL (jump) = post_label; /* Create new basic block to be dest for lp. */ @@ -1766,7 +1766,7 @@ add_labels_and_missing_jumps (vec<edge> crossing_edges) /* Make sure there's only one successor. */ gcc_assert (single_succ_p (src)); - new_jump = emit_jump_insn_after (gen_jump (label), BB_END (src)); + new_jump = emit_jump_insn_after (targetm.gen_jump (label), BB_END (src)); BB_END (src) = new_jump; JUMP_LABEL (new_jump) = label; LABEL_NUSES (label) += 1; @@ -2082,7 +2082,7 @@ fix_crossing_conditional_branches (void) gcc_assert (GET_CODE (old_label) == LABEL_REF); old_jump_target = old_jump_insn->jump_target (); new_jump = as_a <rtx_jump_insn *> - (emit_jump_insn (gen_jump (old_jump_target))); + (emit_jump_insn (targetm.gen_jump (old_jump_target))); new_jump->set_jump_target (old_jump_target); last_bb = EXIT_BLOCK_PTR_FOR_FN (cfun)->prev_bb; |