OSDN Git Service

* loop.c (record_giv): Initialize not_replaceable.
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2002 06:14:54 +0000 (06:14 +0000)
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2002 06:14:54 +0000 (06:14 +0000)
(check_final_value): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59288 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/loop.c

index 136550f..4f18c06 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-19  Andreas Jaeger  <aj@suse.de>
+
+       * loop.c (record_giv): Initialize not_replaceable.
+       (check_final_value): Likewise.
+
 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.c (h8300_init_once): Replace 1 with
@@ -91,7 +96,7 @@ Tue Nov 19 23:50:56 CET 2002  Jan Hubicka  <jh@suse.cz>
        * config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
        (ENDFILE_SPEC): Add if-exists(crtn%O%s).
        * config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.
-    
+
        * doc/invoke.texi: Document spec functions.
 
        * cppspec.c (lang_specific_spec_functions): New.
@@ -240,7 +245,7 @@ Sat Nov 16 02:06:02 CET 2002  Jan Hubicka  <jh@suse.cz>
 
 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
 
-       * config/s390/s390.c (optimization_options): Set 
+       * config/s390/s390.c (optimization_options): Set
        flag_asynchronous_unwind_tables to 1 by default.
 
 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
index 04f95ab..4814cdd 100644 (file)
@@ -5835,7 +5835,10 @@ record_giv (loop, v, insn, src_reg, dest_reg, mult_val, add_val, ext_val,
     abort ();
 
   if (type == DEST_ADDR)
-    v->replaceable = 1;
+    {
+      v->replaceable = 1;
+      v->not_replaceable = 0;
+    }
   else
     {
       /* The giv can be replaced outright by the reduced register only if all
@@ -5870,6 +5873,7 @@ record_giv (loop, v, insn, src_reg, dest_reg, mult_val, add_val, ext_val,
             using this biv anyways.  */
 
          v->replaceable = 1;
+         v->not_replaceable = 0;
          for (b = bl->biv; b; b = b->next_iv)
            {
              if (INSN_UID (b->insn) >= max_uid_for_loop
@@ -5981,6 +5985,7 @@ check_final_value (loop, v)
       rtx last_giv_use;
 
       v->replaceable = 1;
+      v->not_replaceable = 0;
 
       /* When trying to determine whether or not a biv increment occurs
         during the lifetime of the giv, we can ignore uses of the variable