OSDN Git Service

* passes.c (execute_function_todo): Move call of statistics_fini_pass
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Jun 2010 12:24:17 +0000 (12:24 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Jun 2010 12:24:17 +0000 (12:24 +0000)
to ...
(execute_todo) ... this one.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161168 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/passes.c

index 79e0bf8..53ee974 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-22  Jan Hubicka  <jh@suse.cz>
+
+       * passes.c (execute_function_todo): Move call of statistics_fini_pass
+       to ...
+       (execute_todo) ... this one.
+
 2010-06-22  Alan Modra  <amodra@gmail.com>
 
        PR target/44364
index 3c295a0..c58a300 100644 (file)
@@ -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