toplev.c (rest_of_compilation): Run shorten-branches before reg-stack for now.

* toplev.c (rest_of_compilation): Run shorten-branches before
        reg-stack for now.

From-SVN: r31224
This commit is contained in:
Jeffrey A Law 2000-01-05 05:32:27 +00:00 committed by Jeff Law
parent bc46716b04
commit 67e1e279c3
2 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,8 @@
Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
* toplev.c (rest_of_compilation): Run shorten-branches before
reg-stack for now.
2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of

View File

@ -3572,6 +3572,15 @@ rest_of_compilation (decl)
ggc_collect ();
#endif
/* Shorten branches.
Note this must run before reg-stack because of death note (ab)use
in the ia32 backend. */
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));
@ -3589,12 +3598,6 @@ 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,