(can_combine_p): Don't combine into CALL_INSN where DEST is a global
reg. From-SVN: r8305
This commit is contained in:
parent
9b316aa2e6
commit
4dca5ec5b8
@ -875,7 +875,11 @@ can_combine_p (insn, i3, pred, succ, pdest, psrc)
|
|||||||
/* Can't merge a function call. */
|
/* Can't merge a function call. */
|
||||||
|| GET_CODE (src) == CALL
|
|| GET_CODE (src) == CALL
|
||||||
/* Don't eliminate a function call argument. */
|
/* Don't eliminate a function call argument. */
|
||||||
|| (GET_CODE (i3) == CALL_INSN && find_reg_fusage (i3, USE, dest))
|
|| (GET_CODE (i3) == CALL_INSN
|
||||||
|
&& (find_reg_fusage (i3, USE, dest)
|
||||||
|
|| (GET_CODE (dest) == REG
|
||||||
|
&& REGNO (dest) < FIRST_PSEUDO_REGISTER
|
||||||
|
&& global_regs[REGNO (dest)])))
|
||||||
/* Don't substitute into an incremented register. */
|
/* Don't substitute into an incremented register. */
|
||||||
|| FIND_REG_INC_NOTE (i3, dest)
|
|| FIND_REG_INC_NOTE (i3, dest)
|
||||||
|| (succ && FIND_REG_INC_NOTE (succ, dest))
|
|| (succ && FIND_REG_INC_NOTE (succ, dest))
|
||||||
|
Loading…
Reference in New Issue
Block a user