Commit e26ce7ed by Diego Novillo Committed by Diego Novillo

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
parent 745d26d9
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:
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment