From 0d6a035dc026bb1594eb87c8af736cc0254eac8e Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 22 Jun 2010 14:24:17 +0200 Subject: [PATCH] passes.c (execute_function_todo): Move call of statistics_fini_pass to ... * passes.c (execute_function_todo): Move call of statistics_fini_pass to ... (execute_todo) ... this one. From-SVN: r161168 --- gcc/ChangeLog | 6 ++++++ gcc/passes.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 79e0bf8b3c4..53ee974ac0c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-06-22 Jan Hubicka + + * passes.c (execute_function_todo): Move call of statistics_fini_pass + to ... + (execute_todo) ... this one. + 2010-06-22 Alan Modra PR target/44364 diff --git a/gcc/passes.c b/gcc/passes.c index 3c295a033da..c58a300a49b 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1175,8 +1175,6 @@ execute_function_todo (void *data) if (!flags) return; - statistics_fini_pass (); - /* Always cleanup the CFG before trying to update SSA. */ if (flags & TODO_cleanup_cfg) { @@ -1288,6 +1286,8 @@ execute_todo (unsigned int flags) /* Inform the pass whether it is the first time it is run. */ first_pass_instance = (flags & TODO_mark_first_instance) != 0; + statistics_fini_pass (); + do_per_function (execute_function_todo, (void *)(size_t) flags); /* Always remove functions just as before inlining: IPA passes might be -- 2.30.2