OSDN Git Service

* tree-optimize.c (execute_one_pass): Stop timer right after
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Oct 2004 05:00:37 +0000 (05:00 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Oct 2004 05:00:37 +0000 (05:00 +0000)
executing the pass.

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

gcc/ChangeLog
gcc/tree-optimize.c

index a70de55..6dac1c7 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-15  Diego Novillo  <dnovillo@redhat.com>
+
+       * tree-optimize.c (execute_one_pass): Stop timer right after
+       executing the pass.
+
 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
 
        Revert:
index 4fd6240..fed16c3 100644 (file)
@@ -502,6 +502,10 @@ execute_one_pass (struct tree_opt_pass *pass)
   if (pass->execute)
     pass->execute ();
 
+  /* Stop timevar.  */
+  if (pass->tv_id)
+    timevar_pop (pass->tv_id);
+
   if (dump_file
       && (pass->properties_provided & (PROP_cfg | PROP_rtl))
          == (PROP_cfg | PROP_rtl))
@@ -513,9 +517,7 @@ execute_one_pass (struct tree_opt_pass *pass)
   if (todo)
     execute_todo (pass->properties_provided, todo);
 
-  /* Close down timevar and dump file.  */
-  if (pass->tv_id)
-    timevar_pop (pass->tv_id);
+  /* Flush and close dump file.  */
   if (dump_file_name)
     {
       free ((char *) dump_file_name);