cse.c (cse_process_notes): Replace any registers if the address remains valid.
authorDenis Chertykov <denisc@overta.ru>
Thu, 26 Jul 2001 18:31:01 +0000 (18:31 +0000)
committerDenis Chertykov <denisc@gcc.gnu.org>
Thu, 26 Jul 2001 18:31:01 +0000 (22:31 +0400)
* cse.c (cse_process_notes): Replace any registers if the address
remains valid.

From-SVN: r44406

gcc/ChangeLog
gcc/cse.c

index fdb554a..4dd1a12 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
+
+       * cse.c (cse_process_notes): Replace any registers if the address
+       remains valid.
+
 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
 
        * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
index 266b107..7210118 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -6440,7 +6440,8 @@ cse_process_notes (x, object)
       return x;
 
     case MEM:
-      XEXP (x, 0) = cse_process_notes (XEXP (x, 0), x);
+      validate_change (x, &XEXP (x, 0),
+                      cse_process_notes (XEXP (x, 0), x), 0);
       return x;
 
     case EXPR_LIST: