diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2007-07-28 07:55:10 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2007-07-28 07:55:10 +0000 |
commit | 758137cd60130053849b6c6258acfd2f81463739 (patch) | |
tree | 23be6a7ff360907ab17ef21c216f46b44c136bca /gcc | |
parent | b8247b13893d56a6dc3bc0ae77761b3e826aeac5 (diff) | |
download | gcc-758137cd60130053849b6c6258acfd2f81463739.tar.gz |
timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE, TV_FLOW_INSENSITIVE.
2007-07-28 Daniel Berlin <dberlin@dberlin.org>
* timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
TV_FLOW_INSENSITIVE.
* tree-ssa-alias.c (compute_call_clobbered): Push/pop
TV_CALL_CLOBBER.
(compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
(compute_flow_insensitive_aliasing): Ditto for
TV_FLOW_INSENSITIVE.
From-SVN: r127013
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/timevar.def | 3 | ||||
-rw-r--r-- | gcc/tree-ssa-alias.c | 6 |
3 files changed, 20 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 14c4ecb5bc6..9c37e2a652f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2007-07-28 Daniel Berlin <dberlin@dberlin.org> + + * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE, + TV_FLOW_INSENSITIVE. + + * tree-ssa-alias.c (compute_call_clobbered): Push/pop + TV_CALL_CLOBBER. + (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE. + (compute_flow_insensitive_aliasing): Ditto for + TV_FLOW_INSENSITIVE. + 2007-07-27 Jan Hubicka <jh@suse.cz> * config/i386/i386.c (register_move_cost): Remove accidentally comitted diff --git a/gcc/timevar.def b/gcc/timevar.def index 197c3ecf9bf..a2d73b3205e 100644 --- a/gcc/timevar.def +++ b/gcc/timevar.def @@ -87,6 +87,9 @@ DEFTIMEVAR (TV_TREE_STORE_COPY_PROP , "tree store copy prop") DEFTIMEVAR (TV_FIND_REFERENCED_VARS , "tree find ref. vars") DEFTIMEVAR (TV_TREE_PTA , "tree PTA") DEFTIMEVAR (TV_TREE_MAY_ALIAS , "tree alias analysis") +DEFTIMEVAR (TV_CALL_CLOBBER , "tree call clobbering") +DEFTIMEVAR (TV_FLOW_SENSITIVE , "tree flow sensitive alias") +DEFTIMEVAR (TV_FLOW_INSENSITIVE , "tree flow insensitive alias") DEFTIMEVAR (TV_MEMORY_PARTITIONING , "tree memory partitioning") DEFTIMEVAR (TV_TREE_INSERT_PHI_NODES , "tree PHI insertion") DEFTIMEVAR (TV_TREE_SSA_REWRITE_BLOCKS, "tree SSA rewrite") diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index 211cdd86f11..31130ac0dd0 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -573,6 +573,7 @@ compute_call_clobbered (struct alias_info *ai) VEC (tree, heap) *worklist = NULL; VEC(int,heap) *worklist2 = NULL; + timevar_push (TV_CALL_CLOBBER); set_initial_properties (ai); init_transitive_clobber_worklist (&worklist, &worklist2); while (VEC_length (tree, worklist) != 0) @@ -586,6 +587,7 @@ compute_call_clobbered (struct alias_info *ai) VEC_free (tree, heap, worklist); VEC_free (int, heap, worklist2); compute_tag_properties (); + timevar_pop (TV_CALL_CLOBBER); } @@ -2206,6 +2208,7 @@ compute_flow_sensitive_aliasing (struct alias_info *ai) size_t i; tree ptr; + timevar_push (TV_FLOW_SENSITIVE); set_used_smts (); for (i = 0; VEC_iterate (tree, ai->processed_ptrs, i, ptr); i++) @@ -2241,6 +2244,7 @@ compute_flow_sensitive_aliasing (struct alias_info *ai) } } } + timevar_pop (TV_FLOW_SENSITIVE); } @@ -2276,6 +2280,7 @@ compute_flow_insensitive_aliasing (struct alias_info *ai) { size_t i; + timevar_push (TV_FLOW_INSENSITIVE); /* For every pointer P, determine which addressable variables may alias with P's symbol memory tag. */ for (i = 0; i < ai->num_pointers; i++) @@ -2384,6 +2389,7 @@ compute_flow_insensitive_aliasing (struct alias_info *ai) } } + timevar_pop (TV_FLOW_INSENSITIVE); } |