diff options
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r-- | gcc/lto-streamer-out.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index fd6788a..1d2ab97 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -2084,9 +2084,6 @@ output_function (struct cgraph_node *node) /* Set current_function_decl and cfun. */ push_cfun (fn); - /* Fixup loops if required to match discovery done in the reader. */ - loop_optimizer_init (AVOID_CFG_MODIFICATIONS); - /* Make string 0 be a NULL string. */ streamer_write_char_stream (ob->string_stream, 0); @@ -2179,13 +2176,12 @@ output_function (struct cgraph_node *node) streamer_write_record_start (ob, LTO_null); output_cfg (ob, fn); + + pop_cfun (); } else streamer_write_uhwi (ob, 0); - loop_optimizer_finalize (); - pop_cfun (); - /* Create a section to hold the pickled output of this function. */ produce_asm (ob, function); |