diff options
| author | Jeffrey A Law <law@cygnus.com> | 2000-03-17 14:40:45 -0800 |
|---|---|---|
| committer | Richard Henderson <rth@gcc.gnu.org> | 2000-03-17 14:40:45 -0800 |
| commit | 0a1c58a25ab5df1a3e4596024774641ebae8be2a (patch) | |
| tree | 720b4c50b7ea074422601de35cfc7e48ed679e49 /gcc/toplev.c | |
| parent | f1fd8077fd1260362aa134deefc197948da270f8 (diff) | |
| download | gcc-0a1c58a25ab5df1a3e4596024774641ebae8be2a.zip gcc-0a1c58a25ab5df1a3e4596024774641ebae8be2a.tar.gz gcc-0a1c58a25ab5df1a3e4596024774641ebae8be2a.tar.bz2 | |
Sibling call optimizations.
Co-Authored-By: Richard Henderson <rth@cygnus.com>
From-SVN: r32612
Diffstat (limited to 'gcc/toplev.c')
| -rw-r--r-- | gcc/toplev.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index fa7494d..1e1a650 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2986,6 +2986,15 @@ rest_of_compilation (decl) goto exit_rest_of_compilation; } + /* We may have potential sibling or tail recursion sites. Select one + (of possibly multiple) methods of performing the call. */ + init_EXPR_INSN_LIST_cache (); + if (optimize) + optimize_sibling_and_tail_recursive_calls (); + + if (ggc_p) + ggc_collect (); + /* Initialize some variables used by the optimizers. */ init_function_for_compilation (); @@ -3030,8 +3039,6 @@ rest_of_compilation (decl) unshare_all_rtl (current_function_decl, insns); - init_EXPR_INSN_LIST_cache (); - #ifdef SETJMP_VIA_SAVE_AREA /* This must be performed before virutal register instantiation. */ if (current_function_calls_alloca) |
