flow.c (allocate_reg_life_data): Set max_regno here ...
authorRichard Henderson <rth@cygnus.com>
Thu, 27 Apr 2000 07:38:40 +0000 (00:38 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 27 Apr 2000 07:38:40 +0000 (00:38 -0700)
        * flow.c (allocate_reg_life_data): Set max_regno here ...
        (life_analysis): ... not here.

From-SVN: r33475

gcc/ChangeLog
gcc/flow.c

index abc949018cd1030f4de12ff32bb9209280d58fe5..4354846d38158ac60e92c9b15ceaf51a3d8f617b 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-26  Richard Henderson  <rth@cygnus.com>
+
+       * flow.c (allocate_reg_life_data): Set max_regno here ...
+       (life_analysis): ... not here.
+
 2000-04-26  Richard Henderson  <rth@cygnus.com>
 
        * jump.c (redirect_exp_1): Rework from old redirect_exp.  Never
index 8ee75052a8aba891c8047d9613fc7147216d733c..5a729c77d7d38459afabd0d392e5152d6755eab5 100644 (file)
@@ -2512,8 +2512,6 @@ life_analysis (f, file, flags)
   if (flags & PROP_SCAN_DEAD_CODE)
     init_alias_analysis ();
 
-  max_regno = max_reg_num ();
-
   /* Always remove no-op moves.  Do this before other processing so
      that we don't have to keep re-scanning them.  */
   delete_noop_moves (f);
@@ -3206,6 +3204,8 @@ allocate_reg_life_data ()
 {
   int i;
 
+  max_regno = max_reg_num ();
+
   /* Recalculate the register space, in case it has grown.  Old style
      vector oriented regsets would set regset_{size,bytes} here also.  */
   allocate_reg_info (max_regno, FALSE, FALSE);