aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphite-clast-to-gimple.c
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2009-08-12 14:18:17 +0000
committerSebastian Pop <spop@gcc.gnu.org>2009-08-12 14:18:17 +0000
commit87d4d0ee2504d5350b1b355366cff7ea095b10fc (patch)
tree6b171a09f1f0e1fe21c1ad4c5fc567c8569f70fe /gcc/graphite-clast-to-gimple.c
parent4c7af939453060ac5129e08c7a527556500620b6 (diff)
downloadgcc-87d4d0ee2504d5350b1b355366cff7ea095b10fc.zip
gcc-87d4d0ee2504d5350b1b355366cff7ea095b10fc.tar.gz
gcc-87d4d0ee2504d5350b1b355366cff7ea095b10fc.tar.bz2
Measure time spent in DD analysis and in code gen.
2009-08-05 Sebastian Pop <sebastian.pop@amd.com> * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN. * graphite-dependences.c (graphite_legal_transform): Add time to TV_GRAPHITE_DATA_DEPS. (dependency_between_pbbs_p): Same. * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New. From-SVN: r150683
Diffstat (limited to 'gcc/graphite-clast-to-gimple.c')
-rw-r--r--gcc/graphite-clast-to-gimple.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/graphite-clast-to-gimple.c b/gcc/graphite-clast-to-gimple.c
index bf540a2..5da15e0 100644
--- a/gcc/graphite-clast-to-gimple.c
+++ b/gcc/graphite-clast-to-gimple.c
@@ -1160,7 +1160,11 @@ gloog (scop_p scop, htab_t bb_pbb_mapping)
sese region = SCOP_REGION (scop);
ifsese if_region = NULL;
htab_t rename_map, newivs_index;
- cloog_prog_clast pc = scop_to_clast (scop);
+ cloog_prog_clast pc;
+
+ timevar_push (TV_GRAPHITE_CODE_GEN);
+
+ pc = scop_to_clast (scop);
if (dump_file && (dump_flags & TDF_DETAILS))
{
@@ -1206,6 +1210,8 @@ gloog (scop_p scop, htab_t bb_pbb_mapping)
VEC_free (tree, heap, newivs);
cloog_clast_free (pc.stmt);
cloog_program_free (pc.prog);
+ timevar_pop (TV_GRAPHITE_CODE_GEN);
+
return true;
}