summaryrefslogtreecommitdiff
path: root/gcc/tree-optimize.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-15 05:00:37 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-15 05:00:37 +0000
commit38ddce4759617c496335aab7ee3a0fe17adbe569 (patch)
tree56f0f80c23271c371ecc81cafe594afda237358b /gcc/tree-optimize.c
parent050cc3b1f67a15381904f52d6eb0d1ef422cff6c (diff)
downloadgcc-38ddce4759617c496335aab7ee3a0fe17adbe569.tar.gz
* tree-optimize.c (execute_one_pass): Stop timer right after
executing the pass. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89086 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r--gcc/tree-optimize.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c
index 4fd6240fb94..fed16c38b8c 100644
--- a/gcc/tree-optimize.c
+++ b/gcc/tree-optimize.c
@@ -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);