(reg_unused_after): Return 0 if see a JUMP_INSN.
From-SVN: r11501
This commit is contained in:
parent
449bf2aa18
commit
8b760293d7
|
@ -2338,7 +2338,7 @@ fp_one_operand (op)
|
||||||
|
|
||||||
/* Return non-zero if REG is not used after INSN.
|
/* Return non-zero if REG is not used after INSN.
|
||||||
We assume REG is a reload reg, and therefore does
|
We assume REG is a reload reg, and therefore does
|
||||||
not live past labels or calls or jumps. */
|
not live past labels. It may live past calls or jumps though. */
|
||||||
int
|
int
|
||||||
reg_unused_after (reg, insn)
|
reg_unused_after (reg, insn)
|
||||||
rtx reg;
|
rtx reg;
|
||||||
|
@ -2369,11 +2369,14 @@ reg_unused_after (reg, insn)
|
||||||
/* else */
|
/* else */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (code == JUMP_INSN)
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* If this is a sequence, we must handle them all at once.
|
/* If this is a sequence, we must handle them all at once.
|
||||||
We could have for instance a call that sets the target register,
|
We could have for instance a call that sets the target register,
|
||||||
and a insn in a delay slot that uses the register. In this case,
|
and a insn in a delay slot that uses the register. In this case,
|
||||||
we must return 0. */
|
we must return 0. */
|
||||||
if (code == INSN && GET_CODE (PATTERN (insn)) == SEQUENCE)
|
else if (code == INSN && GET_CODE (PATTERN (insn)) == SEQUENCE)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
|
|
Loading…
Reference in New Issue