gcse.c (try_replace_reg): Disallow REG_EQUAL notes for STRICT_LOW_PART SETs.
authorAndreas Krebbel <krebbel1@de.ibm.com>
Tue, 6 Sep 2005 08:15:35 +0000 (08:15 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 6 Sep 2005 08:15:35 +0000 (08:15 +0000)
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

gcc/ChangeLog
gcc/gcse.c

index 88efaaf..3ab98be 100644 (file)
@@ -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
index e2d35e2..f165363 100644 (file)
@@ -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));
     }