(optimize_reg_copy_1): If P is a CALL_INSN, count it as being crossed
by SRC since SRC used to die there. From-SVN: r2689
This commit is contained in:
parent
5145eda8f0
commit
6c84e1541c
@ -697,6 +697,12 @@ optimize_reg_copy_1 (insn, dest, src)
|
|||||||
int n_calls = 0;
|
int n_calls = 0;
|
||||||
int d_n_calls = 0;
|
int d_n_calls = 0;
|
||||||
|
|
||||||
|
/* If P is a CALL_INSN, SRC crosses one more call, since it
|
||||||
|
used to die there. */
|
||||||
|
|
||||||
|
if (GET_CODE (p) == CALL_INSN)
|
||||||
|
n_calls++;
|
||||||
|
|
||||||
/* We can do the optimization. Scan forward from INSN again,
|
/* We can do the optimization. Scan forward from INSN again,
|
||||||
replacing regs as we go. Set FAILED if a replacement can't
|
replacing regs as we go. Set FAILED if a replacement can't
|
||||||
be done. In that case, we can't move the death note for SRC.
|
be done. In that case, we can't move the death note for SRC.
|
||||||
|
Loading…
Reference in New Issue
Block a user