From be099f3724af96e861e07aae1fcf2b81b4897c53 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 2 Oct 2018 10:55:33 +0000 Subject: dojump.h (do_jump): Delete. * dojump.h (do_jump): Delete. (do_jump_1): Likewise. (split_comparison): Move around. * dojump.c (do_jump): Make static. (do_jump_1): Likewise. (jumpifnot): Move around. (jumpifnot_1): Likewise. (jumpif): Likewise. (jumpif_1): Likewise. * expr.c (expand_expr_real_1): Call jumpif[not] instead of do_jump. From-SVN: r264781 --- gcc/expr.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gcc/expr.c') diff --git a/gcc/expr.c b/gcc/expr.c index 583c7f0..03e5dc4 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -11155,10 +11155,11 @@ expand_expr_real_1 (tree exp, rtx target, machine_mode tmode, { rtx_code_label *label = gen_label_rtx (); int value = TREE_CODE (rhs) == BIT_IOR_EXPR; - do_jump (TREE_OPERAND (rhs, 1), - value ? label : 0, - value ? 0 : label, - profile_probability::uninitialized ()); + profile_probability prob = profile_probability::uninitialized (); + if (value) + jumpifnot (TREE_OPERAND (rhs, 1), label, prob); + else + jumpif (TREE_OPERAND (rhs, 1), label, prob); expand_assignment (lhs, build_int_cst (TREE_TYPE (rhs), value), false); do_pending_stack_adjust (); -- cgit v1.1