summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authoryroux <yroux@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-25 18:35:02 +0000
committeryroux <yroux@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-25 18:35:02 +0000
commite2ca76acdeeb4ab6b64b68dc4b0ebe24669af3f3 (patch)
treee854b65dce3bab1f2d0575ebbd1f5e16849aa6a9 /gcc
parentcc1925e74950674766fdea5a7104f6aae93428e0 (diff)
downloadgcc-e2ca76acdeeb4ab6b64b68dc4b0ebe24669af3f3.tar.gz
2013-09-25 Yvan Roux <yvan.roux@linaro.org>
* lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202915 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/lra.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 360a8f12e8c..5adbaebfca2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,8 @@
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>
* rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
diff --git a/gcc/lra.c b/gcc/lra.c
index f5aab173927..532d3de3e09 100644
--- 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);