tree-optimize.c (execute_one_pass): Stop timer right after executing the pass.

* tree-optimize.c (execute_one_pass): Stop timer right after
	executing the pass.

From-SVN: r89086
This commit is contained in:
Diego Novillo 2004-10-15 05:00:37 +00:00 committed by Diego Novillo
parent 745d26d9ac
commit e26ce7eddf
2 changed files with 10 additions and 3 deletions

View 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:

View 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);