/* TARGET is nonzero if it is ok to cross jump
to code before TARGET. If so, see if matches. */
if (x != 0)
- find_cross_jump (insn, x, 2,
+ find_cross_jump (insn, x,
+ (optimize_size ? 1 : BRANCH_COST) + 1,
&newjpos, &newlpos);
if (newjpos != 0)
/* TARGET is nonzero if it is ok to cross jump
to code before TARGET. If so, see if matches. */
- find_cross_jump (insn, JUMP_LABEL (insn), 1,
+ find_cross_jump (insn, JUMP_LABEL (insn),
+ optimize_size ? 1 : BRANCH_COST,
&newjpos, &newlpos);
/* If cannot cross jump to code before the label,
&& JUMP_LABEL (target) == JUMP_LABEL (insn)
/* Ignore TARGET if it's deleted. */
&& ! INSN_DELETED_P (target))
- find_cross_jump (insn, target, 2,
+ find_cross_jump (insn, target,
+ (optimize_size ? 1 : BRANCH_COST) + 1,
&newjpos, &newlpos);
if (newjpos != 0)
if (target != insn
&& ! INSN_DELETED_P (target)
&& GET_CODE (PATTERN (target)) == RETURN)
- find_cross_jump (insn, target, 2,
+ find_cross_jump (insn, target,
+ (optimize_size ? 1 : BRANCH_COST) + 1,
&newjpos, &newlpos);
if (newjpos != 0)