cse.c (delete_trivially_dead_insns): Identify no-op insns containing subregs too.

* cse.c (delete_trivially_dead_insns): Identify no-op insns
        containing subregs too.

From-SVN: r30563
This commit is contained in:
Richard Henderson 1999-11-17 16:52:07 -08:00 committed by Richard Henderson
parent 919509ceea
commit e7a59e04e7
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Wed Nov 17 16:51:23 1999 Richard Henderson <rth@cygnus.com>
* cse.c (delete_trivially_dead_insns): Identify no-op insns
containing subregs too.
Wed Nov 17 17:39:48 MST 1999 Diego Novillo <dnovillo@cygnus.com>
* invoke.texi: Add documentation for -muninit-const-in-rodata.

View File

@ -7176,8 +7176,10 @@ delete_trivially_dead_insns (insns, nreg)
live_insn = ! dead_libcall;
else if (GET_CODE (PATTERN (insn)) == SET)
{
if (GET_CODE (SET_DEST (PATTERN (insn))) == REG
&& SET_DEST (PATTERN (insn)) == SET_SRC (PATTERN (insn)))
if ((GET_CODE (SET_DEST (PATTERN (insn))) == REG
|| GET_CODE (SET_DEST (PATTERN (insn))) == SUBREG)
&& rtx_equal_p (SET_DEST (PATTERN (insn)),
SET_SRC (PATTERN (insn))))
;
#ifdef HAVE_cc0
@ -7207,8 +7209,9 @@ delete_trivially_dead_insns (insns, nreg)
if (GET_CODE (elt) == SET)
{
if (GET_CODE (SET_DEST (elt)) == REG
&& SET_DEST (elt) == SET_SRC (elt))
if ((GET_CODE (SET_DEST (elt)) == REG
|| GET_CODE (SET_DEST (elt)) == SUBREG)
&& rtx_equal_p (SET_DEST (elt), SET_SRC (elt)))
;
#ifdef HAVE_cc0