toplev.c (rest_of_compilation): Run branch shortening after reg-stack.
authorJan Hubicka <hubicka@freesoft.cz>
Thu, 16 Dec 1999 10:58:12 +0000 (11:58 +0100)
committerJeff Law <law@gcc.gnu.org>
Thu, 16 Dec 1999 10:58:12 +0000 (03:58 -0700)
        * toplev.c (rest_of_compilation): Run branch shortening after
        reg-stack.

From-SVN: r30978

gcc/ChangeLog
gcc/toplev.c

index 570e307..8e5cf15 100644 (file)
@@ -1,5 +1,8 @@
 Thu Dec 16 11:33:57 MET 1999  Jan Hubicka  <hubicka@freesoft.cz>
 
+       * toplev.c (rest_of_compilation): Run branch shortening after
+       reg-stack.
+
        * regclass.c (loop_depth): Remove
        (scan_one_insn): Do not handle LOOP_NOTE insns.
        (regclass): Go through basic blocks and set loop_cost
index dbe2706..a880812 100644 (file)
@@ -4393,12 +4393,6 @@ rest_of_compilation (decl)
      ggc_collect ();
 #endif
 
-  /* Shorten branches.  */
-  TIMEVAR (shorten_branch_time,
-          {
-            shorten_branches (get_insns ());
-          });
-
 #ifdef STACK_REGS
   if (stack_reg_dump)
     open_dump_file (".20.stack", decl_printable_name (decl, 2));
@@ -4416,6 +4410,12 @@ rest_of_compilation (decl)
      ggc_collect ();
 #endif
 
+  /* Shorten branches.  */
+  TIMEVAR (shorten_branch_time,
+          {
+            shorten_branches (get_insns ());
+          });
+
   /* Now turn the rtl into assembler code.  */
 
   TIMEVAR (final_time,