aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel1@de.ibm.com>2005-09-06 08:15:35 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2005-09-06 08:15:35 +0000
commit70a640af36dabccba824de7661405b5667ea57c7 (patch)
tree3ffd7f90a3fcf7814fc1054ebcd4950dda87ffd4 /gcc
parentfc781ee0007046369d57a9798badd524f96e7557 (diff)
downloadgcc-70a640af36dabccba824de7661405b5667ea57c7.zip
gcc-70a640af36dabccba824de7661405b5667ea57c7.tar.gz
gcc-70a640af36dabccba824de7661405b5667ea57c7.tar.bz2
gcse.c (try_replace_reg): Disallow REG_EQUAL notes for STRICT_LOW_PART SETs.
2005-09-06 Andreas Krebbel <krebbel1@de.ibm.com> * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for STRICT_LOW_PART SETs. From-SVN: r103934
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gcse.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 88efaaf..3ab98be 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-06 Andreas Krebbel <krebbel1@de.ibm.com>
+
+ * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
+ STRICT_LOW_PART SETs.
+
2005-09-06 Alan Modra <amodra@bigpond.net.au>
PR middle-end/21460
diff --git a/gcc/gcse.c b/gcc/gcse.c
index e2d35e2..f165363 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -2677,7 +2677,8 @@ try_replace_reg (rtx from, rtx to, rtx insn)
have a note, and have no special SET, add a REG_EQUAL note to not
lose information. */
if (!success && note == 0 && set != 0
- && GET_CODE (SET_DEST (set)) != ZERO_EXTRACT)
+ && GET_CODE (SET_DEST (set)) != ZERO_EXTRACT
+ && GET_CODE (SET_DEST (set)) != STRICT_LOW_PART)
note = set_unique_reg_note (insn, REG_EQUAL, copy_rtx (src));
}