diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-05 00:44:24 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-05 00:44:24 +0000 |
commit | dcead90ecd299239015124a21bff7243a03fe9d3 (patch) | |
tree | 332b7bfeaf1b2a96cffecab0bfa2dc29230d9f3c /gcc/tree-ssa-structalias.c | |
parent | 21604f19031d9583286421f6106e6cdbf56241e2 (diff) | |
download | gcc-dcead90ecd299239015124a21bff7243a03fe9d3.tar.gz |
2006-12-04 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-alias.c (compute_flow_sensitive_aliasing): Call
set_used_smts.
* tree-ssa-structalias.c (set_used_smts): Export.
(find_what_p_points_to): Don't call set_used_smts here.
* tree-ssa-structalias.h (set_used_smts): Add prototype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119528 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 6a27972e7ef..7fda8b55cc3 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -3876,11 +3876,10 @@ static bitmap used_smts; calculation being a bit co-dependent, we can't just calculate SMT used info whenever we want, we have to calculate it around the time that find_what_p_points_to is called. */ -static bool used_smt_calculated; /* Mark which SMT's are in use by points-to anything variables. */ -static void +void set_used_smts (void) { int i; @@ -3926,7 +3925,6 @@ set_used_smts (void) } } } - used_smt_calculated = true; } /* Merge the necessary SMT's into the solution set for VI, which is @@ -4076,12 +4074,10 @@ find_what_p_points_to (tree p) aliases for the underlying SMT. */ if (was_pt_anything) { - if (!used_smt_calculated) - set_used_smts (); merge_smts_into (p, vi); pi->pt_global_mem = 1; - } + set_uids_in_ptset (vi->decl, vi->finished_solution, vi->solution); pi->pt_vars = vi->finished_solution; } @@ -4324,8 +4320,6 @@ compute_points_to_sets (struct alias_info *ai) solve_graph (graph); - used_smt_calculated = false; - if (dump_file) dump_sa_points_to_info (dump_file); @@ -4458,7 +4452,6 @@ ipa_pta_execute (void) fprintf (dump_file, "\nSolving graph:\n"); solve_graph (graph); - set_used_smts (); if (dump_file) dump_sa_points_to_info (dump_file); |