diff options
author | Richard Guenther <rguenther@suse.de> | 2008-06-29 15:44:00 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-06-29 15:44:00 +0000 |
commit | faf2ecc57e3ef478efebee6f83c440df073152c2 (patch) | |
tree | 38b5df5e06de9bf257f1600a6446d2b744b0ab56 /gcc/tree-ssa-structalias.h | |
parent | b03717765d0d62af54bdb3112ac90ca6d7dd7c75 (diff) | |
download | gcc-faf2ecc57e3ef478efebee6f83c440df073152c2.zip gcc-faf2ecc57e3ef478efebee6f83c440df073152c2.tar.gz gcc-faf2ecc57e3ef478efebee6f83c440df073152c2.tar.bz2 |
tree-ssa-structalias.h (compute_points_to_sets): Adjust prototype.
2008-06-29 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.h (compute_points_to_sets): Adjust
prototype.
(struct alias_info): Move ...
* tree-ssa-alias.c: ... here.
(update_alias_info): Declare.
(compute_may_aliases): Call it.
(update_alias_info): New function.
* tree-ssa-structalias.c (update_alias_info): Move ...
* tree-ssa-alias.c (update_alias_info_1): ... here.
* tree-ssa-structalias.c (process_constraint_1): Remove
unused from_call argument. Rename to ...
(process_constraint): ... this. Delete old wrapper.
(make_constraint_to): Adjust callers.
(handle_const_call): Likewise.
(handle_pure_call): Likewise.
(init_base_vars): Likewise.
(handle_lhs_call): Likewise. Remove unnecessary constraint.
(find_func_aliases): We don't need structure copies for
complex types.
(make_constraint_from_anything): Remove.
(create_variable_info_for): For globals make constraints
from escaped, not from anything.
(compute_points_to_sets): Do not call update_alias_info.
(ipa_pta_execute): Use make_constraint_from.
From-SVN: r137252
Diffstat (limited to 'gcc/tree-ssa-structalias.h')
-rw-r--r-- | gcc/tree-ssa-structalias.h | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/gcc/tree-ssa-structalias.h b/gcc/tree-ssa-structalias.h index 737135b..7d468b4 100644 --- a/gcc/tree-ssa-structalias.h +++ b/gcc/tree-ssa-structalias.h @@ -24,44 +24,12 @@ struct constraint; typedef struct constraint *constraint_t; -/* Alias information used by compute_may_aliases and its helpers. */ -struct alias_info -{ - /* SSA names visited while collecting points-to information. If bit I - is set, it means that SSA variable with version I has already been - visited. */ - sbitmap ssa_names_visited; - - /* Array of SSA_NAME pointers processed by the points-to collector. */ - VEC(tree,heap) *processed_ptrs; - - /* ADDRESSABLE_VARS contains all the global variables and locals that - have had their address taken. */ - struct alias_map_d **addressable_vars; - size_t num_addressable_vars; - - /* POINTERS contains all the _DECL pointers with unique memory tags - that have been referenced in the program. */ - struct alias_map_d **pointers; - size_t num_pointers; - - /* Variables that have been written to directly (i.e., not through a - pointer dereference). */ - struct pointer_set_t *written_vars; - - /* Pointers that have been used in an indirect store operation. */ - struct pointer_set_t *dereferenced_ptrs_store; - - /* Pointers that have been used in an indirect load operation. */ - struct pointer_set_t *dereferenced_ptrs_load; -}; - /* In tree-ssa-alias.c. */ enum escape_type is_escape_site (tree); void update_mem_sym_stats_from_stmt (tree, tree, long, long); /* In tree-ssa-structalias.c. */ -extern void compute_points_to_sets (struct alias_info *); +extern void compute_points_to_sets (void); extern void delete_points_to_sets (void); extern void dump_constraint (FILE *, constraint_t); extern void dump_constraints (FILE *); |