loop.c (loop_optimize): Fix value max_uid_for_loop is reset to after find_and_verify_...
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Tue, 2 Feb 1999 13:38:56 +0000 (13:38 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Tue, 2 Feb 1999 13:38:56 +0000 (13:38 +0000)
* loop.c (loop_optimize): Fix value max_uid_for_loop is reset
to after find_and_verify_loops call.

From-SVN: r24973

gcc/ChangeLog
gcc/loop.c

index cf302bc48f1ab7b77be94f40039699b891ef7602..485696dd6bc20c3deeced3338275a82293003e26 100644 (file)
@@ -1,3 +1,8 @@
+Tue Feb  2 20:24:11 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
+
+       * loop.c (loop_optimize): Fix value max_uid_for_loop is reset
+       to after find_and_verify_loops call.
+
 Tue Feb  2 19:48:29 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
 
        * (recombine_givs): Don't use a giv that's likely to be dead to
index 8323a273c6ab568ff8339b4899391c7ad6f75bc4..2f054fb5d78ffe30279e6de425d453ac56ea79a4 100644 (file)
@@ -525,11 +525,12 @@ loop_optimize (f, dumpfile, unroll_p, bct_p)
      but moving this call to init_alias_analysis is more efficient.  */
   init_alias_analysis ();
 
-  /* See if we went too far.  */
+  /* See if we went too far.  Note that get_max_uid already returns
+     one more that the maximum uid of all insn.  */
   if (get_max_uid () > max_uid_for_loop)
     abort ();
   /* Now reset it to the actual size we need.  See above.  */
-  max_uid_for_loop = get_max_uid () + 1;
+  max_uid_for_loop = get_max_uid ();
 
   /* find_and_verify_loops has already called compute_luids, but it might
      have rearranged code afterwards, so we need to recompute the luids now.  */