diff options
author | Richard Guenther <rguenther@suse.de> | 2010-07-02 13:25:23 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-07-02 13:25:23 +0000 |
commit | 90fa9e17bf3cafd95f2ad00d18a7c8c85be2b778 (patch) | |
tree | f37be14bcfe974e0f88b36294c0390a85e6fe224 /gcc/tree-ssa-structalias.c | |
parent | c3ac3ddf8490a2b1899f60150e585e2585568613 (diff) | |
download | gcc-90fa9e17bf3cafd95f2ad00d18a7c8c85be2b778.zip gcc-90fa9e17bf3cafd95f2ad00d18a7c8c85be2b778.tar.gz gcc-90fa9e17bf3cafd95f2ad00d18a7c8c85be2b778.tar.bz2 |
tree-ssa-structalias.c (pt_solution_set_var): New function.
2010-07-02 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.c (pt_solution_set_var): New function.
* tree-ssa-alias.h (pt_solution_set_var): Declare.
* tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
points-to information.
From-SVN: r161716
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index b0efcfa..5a84b58 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -5817,6 +5817,17 @@ pt_solution_set (struct pt_solution *pt, bitmap vars, pt->vars_contains_restrict = vars_contains_restrict; } +/* Set the points-to solution *PT to point only to the variable VAR. */ + +void +pt_solution_set_var (struct pt_solution *pt, tree var) +{ + memset (pt, 0, sizeof (struct pt_solution)); + pt->vars = BITMAP_GGC_ALLOC (); + bitmap_set_bit (pt->vars, DECL_UID (var)); + pt->vars_contains_global = is_global_var (var); +} + /* Computes the union of the points-to solutions *DEST and *SRC and stores the result in *DEST. This changes the points-to bitmap of *DEST and thus may not be used if that might be shared. |