aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2006-12-05 00:44:24 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2006-12-05 00:44:24 +0000
commite5ebbea51eb1a2d044a8761cf3f95d40b67f1329 (patch)
tree332b7bfeaf1b2a96cffecab0bfa2dc29230d9f3c /gcc/tree-ssa-structalias.c
parentb8d85341b63d9eebe1ca2023adea6b5300873a7b (diff)
downloadgcc-e5ebbea51eb1a2d044a8761cf3f95d40b67f1329.zip
gcc-e5ebbea51eb1a2d044a8761cf3f95d40b67f1329.tar.gz
gcc-e5ebbea51eb1a2d044a8761cf3f95d40b67f1329.tar.bz2
tree-ssa-alias.c (compute_flow_sensitive_aliasing): Call set_used_smts.
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. From-SVN: r119528
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 6a27972..7fda8b5 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);