From 5b772bbdc0d20de1c4ab781611b5e5566ec45ecc Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 16 Dec 1999 11:58:12 +0100 Subject: [PATCH] toplev.c (rest_of_compilation): Run branch shortening after reg-stack. * toplev.c (rest_of_compilation): Run branch shortening after reg-stack. From-SVN: r30978 --- gcc/ChangeLog | 3 +++ gcc/toplev.c | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 570e307..8e5cf15 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ Thu Dec 16 11:33:57 MET 1999 Jan Hubicka + * 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 diff --git a/gcc/toplev.c b/gcc/toplev.c index dbe2706..a880812 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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, -- 2.7.4