* emit-rtl.c (active_insn_p): Revert last change.

From-SVN: r57590
This commit is contained in:
Richard Henderson 2002-09-27 09:17:33 -07:00 committed by Richard Henderson
parent 0b0f416385
commit 23b8ba8182
2 changed files with 9 additions and 28 deletions

View File

@ -1,3 +1,7 @@
2002-09-27 Richard Henderson <rth@redhat.com>
* emit-rtl.c (active_insn_p): Revert last change.
2002-09-27 Jakub Jelinek <jakub@redhat.com>
* doc/extend.texi (tls_model): Document.

View File

@ -3021,34 +3021,11 @@ int
active_insn_p (insn)
rtx insn;
{
if (GET_CODE (insn) == CALL_INSN || GET_CODE (insn) == JUMP_INSN)
return true;
if (GET_CODE (insn) == INSN)
{
if (reload_completed)
{
rtx pat = PATTERN (insn);
/* After reload, remaining USE insns are noops. */
if (GET_CODE (pat) == USE)
return false;
if (GET_CODE (pat) == CLOBBER)
{
/* ??? Don't skip past the clobber of the return register.
If we eliminate it, we risk a variety of life analysis
problems on broken code. */
if (GET_CODE (XEXP (pat, 0)) == REG
&& REG_FUNCTION_VALUE_P (XEXP (pat, 0)))
return true;
/* Otherwise, clobbers don't do anything either. */
return false;
}
}
return true;
}
return false;
return (GET_CODE (insn) == CALL_INSN || GET_CODE (insn) == JUMP_INSN
|| (GET_CODE (insn) == INSN
&& (! reload_completed
|| (GET_CODE (PATTERN (insn)) != USE
&& GET_CODE (PATTERN (insn)) != CLOBBER))));
}
rtx