(jump_optimize): Pass outer_code arg to rtx_cost.

From-SVN: r10111
This commit is contained in:
Richard Kenner 1995-07-10 19:44:22 -04:00
parent af17086591
commit 97fa962f63

View File

@ -871,7 +871,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
&& GET_CODE (SET_SRC (temp1)) != CONST_INT && GET_CODE (SET_SRC (temp1)) != CONST_INT
&& ! side_effects_p (SET_SRC (temp1)) && ! side_effects_p (SET_SRC (temp1))
&& ! may_trap_p (SET_SRC (temp1)) && ! may_trap_p (SET_SRC (temp1))
&& rtx_cost (SET_SRC (temp1)) < 10) && rtx_cost (SET_SRC (temp1), SET) < 10)
{ {
rtx new = gen_reg_rtx (GET_MODE (temp2)); rtx new = gen_reg_rtx (GET_MODE (temp2));
@ -910,12 +910,12 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
#endif #endif
&& ! side_effects_p (SET_SRC (temp1)) && ! side_effects_p (SET_SRC (temp1))
&& ! may_trap_p (SET_SRC (temp1)) && ! may_trap_p (SET_SRC (temp1))
&& rtx_cost (SET_SRC (temp1)) < 10 && rtx_cost (SET_SRC (temp1), SET) < 10
&& (temp4 = single_set (temp3)) != 0 && (temp4 = single_set (temp3)) != 0
&& rtx_equal_p (SET_DEST (temp4), temp2) && rtx_equal_p (SET_DEST (temp4), temp2)
&& ! side_effects_p (SET_SRC (temp4)) && ! side_effects_p (SET_SRC (temp4))
&& ! may_trap_p (SET_SRC (temp4)) && ! may_trap_p (SET_SRC (temp4))
&& rtx_cost (SET_SRC (temp4)) < 10) && rtx_cost (SET_SRC (temp4), SET) < 10)
{ {
rtx new = gen_reg_rtx (GET_MODE (temp2)); rtx new = gen_reg_rtx (GET_MODE (temp2));
@ -962,7 +962,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
&& regno_last_uid[REGNO (temp5)] == INSN_UID (temp3) && regno_last_uid[REGNO (temp5)] == INSN_UID (temp3)
&& ! side_effects_p (SET_SRC (temp1)) && ! side_effects_p (SET_SRC (temp1))
&& ! may_trap_p (SET_SRC (temp1)) && ! may_trap_p (SET_SRC (temp1))
&& rtx_cost (SET_SRC (temp1)) < 10 && rtx_cost (SET_SRC (temp1), SET) < 10
&& (temp4 = single_set (temp3)) != 0 && (temp4 = single_set (temp3)) != 0
&& (temp2 = SET_DEST (temp4), GET_CODE (temp2) == REG) && (temp2 = SET_DEST (temp4), GET_CODE (temp2) == REG)
&& GET_MODE_CLASS (GET_MODE (temp2)) == MODE_INT && GET_MODE_CLASS (GET_MODE (temp2)) == MODE_INT
@ -972,7 +972,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
&& rtx_equal_p (SET_DEST (temp4), temp2) && rtx_equal_p (SET_DEST (temp4), temp2)
&& ! side_effects_p (SET_SRC (temp4)) && ! side_effects_p (SET_SRC (temp4))
&& ! may_trap_p (SET_SRC (temp4)) && ! may_trap_p (SET_SRC (temp4))
&& rtx_cost (SET_SRC (temp4)) < 10) && rtx_cost (SET_SRC (temp4), SET) < 10)
{ {
rtx new = gen_reg_rtx (GET_MODE (temp2)); rtx new = gen_reg_rtx (GET_MODE (temp2));