aboutsummaryrefslogtreecommitdiff
path: root/gcc/dominance.c
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2006-04-19 14:48:35 +0200
committerZdenek Dvorak <rakdver@gcc.gnu.org>2006-04-19 12:48:35 +0000
commit74c96e0c149acb69337d704bfcd32d1e60724307 (patch)
treeb50b5aa4ee5c10e726dd584ddc017c34982c6386 /gcc/dominance.c
parent4414de4a96f412f56cd57f4506edb466a43dd147 (diff)
downloadgcc-74c96e0c149acb69337d704bfcd32d1e60724307.zip
gcc-74c96e0c149acb69337d704bfcd32d1e60724307.tar.gz
gcc-74c96e0c149acb69337d704bfcd32d1e60724307.tar.bz2
dominance.c: Include timevar.h.
* dominance.c: Include timevar.h. (calculate_dominance_info): Use TV_DOMINANCE. * timevar.def (TV_DOMINANCE): New timevar. * Makefile.in (dominance.o): Add TIMEVAR_H dependency. From-SVN: r113075
Diffstat (limited to 'gcc/dominance.c')
-rw-r--r--gcc/dominance.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/dominance.c b/gcc/dominance.c
index c5c0810..92496b7 100644
--- a/gcc/dominance.c
+++ b/gcc/dominance.c
@@ -43,6 +43,7 @@
#include "basic-block.h"
#include "toplev.h"
#include "et-forest.h"
+#include "timevar.h"
/* Whether the dominators and the postdominators are available. */
enum dom_state dom_computed[2];
@@ -616,6 +617,7 @@ calculate_dominance_info (enum cdi_direction dir)
if (dom_computed[dir] == DOM_OK)
return;
+ timevar_push (TV_DOMINANCE);
if (!dom_info_available_p (dir))
{
gcc_assert (!n_bbs_in_dom_tree[dir]);
@@ -643,6 +645,8 @@ calculate_dominance_info (enum cdi_direction dir)
}
compute_dom_fast_query (dir);
+
+ timevar_pop (TV_DOMINANCE);
}
/* Free dominance information for direction DIR. */