lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
authorYvan Roux <yvan.roux@linaro.org>
Wed, 25 Sep 2013 18:35:02 +0000 (18:35 +0000)
committerYvan Roux <yroux@gcc.gnu.org>
Wed, 25 Sep 2013 18:35:02 +0000 (18:35 +0000)
2013-09-25  Yvan Roux  <yvan.roux@linaro.org>

* lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.

From-SVN: r202915

gcc/ChangeLog
gcc/lra.c

index 360a8f12e8c37cbd1204532d43725b3e0586affc..5adbaebfca26f9ef124558172f9424cfe8c59167 100644 (file)
@@ -1,3 +1,7 @@
+2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
+
+       * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
+
 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
            Vladimir Makarov  <vmakarov@redhat.com>
 
index f5aab1739272ba72922dbf7a35ecbfc50c2c4c0c..532d3de3e09ff92157678f93b076a2d40cf519d1 100644 (file)
--- a/gcc/lra.c
+++ b/gcc/lra.c
@@ -2163,7 +2163,9 @@ update_inc_notes (void)
        pnote = &REG_NOTES (insn);
        while (*pnote != 0)
          {
-           if (REG_NOTE_KIND (*pnote) == REG_INC)
+           if (REG_NOTE_KIND (*pnote) == REG_DEAD
+                || REG_NOTE_KIND (*pnote) == REG_UNUSED
+                || REG_NOTE_KIND (*pnote) == REG_INC)
              *pnote = XEXP (*pnote, 1);
            else
              pnote = &XEXP (*pnote, 1);