aboutsummaryrefslogtreecommitdiff
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-10-30 17:51:46 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-10-30 17:51:46 +0000
commit428aba16aa4b474842fa38aa6599f7d6118f2fae (patch)
tree2ce04ecaaae7281c4ae1af515ef85ebd6c45735a /gcc/ifcvt.c
parent0e697399655c6ae1a53267d3d38e462b8848910e (diff)
downloadgcc-428aba16aa4b474842fa38aa6599f7d6118f2fae.zip
gcc-428aba16aa4b474842fa38aa6599f7d6118f2fae.tar.gz
gcc-428aba16aa4b474842fa38aa6599f7d6118f2fae.tar.bz2
builtins.c (expand_builtin_mathfn_3): Correct coding style.
* builtins.c (expand_builtin_mathfn_3): Correct coding style. * ddg.c (print_ddg_edge): Likewise. * dwarf2out.c (prune_unused_types_walk): Likewise. * ifcvt.c (noce_try_cmove_arith): Likewise. * langhooks.c (add_builtin_function): Likewise. * reg-stack.c (subst_stack_regs_pat): Likewise. * tree.c (expanded_location): Likewise. * tree-dump.c (dequeue_and_dump): Likewise. From-SVN: r118187
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index 8609823..4d7341c 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -1329,16 +1329,15 @@ noce_try_cmove_arith (struct noce_if_info *if_info)
return FALSE;
}
else
+ insn_cost = 0;
+
+ if (insn_b)
{
- insn_cost = 0;
+ insn_cost += insn_rtx_cost (PATTERN (insn_b));
+ if (insn_cost == 0 || insn_cost > COSTS_N_INSNS (BRANCH_COST))
+ return FALSE;
}
- if (insn_b) {
- insn_cost += insn_rtx_cost (PATTERN (insn_b));
- if (insn_cost == 0 || insn_cost > COSTS_N_INSNS (BRANCH_COST))
- return FALSE;
- }
-
/* Possibly rearrange operands to make things come out more natural. */
if (reversed_comparison_code (if_info->cond, if_info->jump) != UNKNOWN)
{