unroll.c (find_splittable_givs): Don't split givs with a dest_reg that was created...
authorJeffrey A Law <law@cygnus.com>
Thu, 27 Nov 1997 19:24:06 +0000 (19:24 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 27 Nov 1997 19:24:06 +0000 (12:24 -0700)
        * unroll.c (find_splittable_givs): Don't split givs with a dest_reg
        that was created by loop.

From-SVN: r16803

gcc/ChangeLog
gcc/unroll.c

index 1920597e6ba3d30ca8836a1a499e3ba15b8b87eb..da98037569531f8a4a46c8139b3004cce6685124 100644 (file)
@@ -1,3 +1,8 @@
+Thu Nov 27 12:20:19 1997  Jeffrey A Law  (law@cygnus.com)
+
+       * unroll.c (find_splittable_givs): Don't split givs with a dest_reg
+       that was created by loop.
+
 Wed Nov 26 15:47:30 1997  Michael Meissner  <meissner@cygnus.com>
 
        * rs6000.c (SMALL_DATA_REG): Register to use for small data relocs.
index 10dfb8a9277f6f9f7bf51e80adc41532cbc99476..29f01b8c213759154bc3d37f917b0c33591a97b6 100644 (file)
@@ -2668,6 +2668,12 @@ find_splittable_givs (bl, unroll_type, loop_start, loop_end, increment,
     {
       rtx giv_inc, value;
 
+      
+      /* If this is a new register, can't handle it since it does not have
+        an entry in reg_n_info.  */
+      if (REGNO (v->dest_reg) >= max_reg_before_loop)
+       continue;
+
       /* Only split the giv if it has already been reduced, or if the loop is
         being completely unrolled.  */
       if (unroll_type != UNROLL_COMPLETELY && v->ignore)