diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-30 09:55:34 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-30 09:55:34 +0000 |
commit | 1daead670209600896b7d063704b432954cd505f (patch) | |
tree | 2738597e7116e10ffc0882dfea2b58bdaafb9d6b /gcc/tree-ssa-alias.c | |
parent | be14142f08ec53f04dfcacb02d5b534f5eadbcb3 (diff) | |
download | gcc-1daead670209600896b7d063704b432954cd505f.tar.gz |
2009-06-30 Richard Guenther <rguenther@suse.de>
* tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
use ao_ref references.
(walk_aliased_vdefs): Likewise.
* tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
* tree-ssa-dce.c (struct ref_data): Remove.
(mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
(mark_aliased_reaching_defs_necessary): Adjust.
(mark_all_reaching_defs_necessary_1): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149086 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r-- | gcc/tree-ssa-alias.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index e8bca84ba35..4d721877d02 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -1427,8 +1427,8 @@ walk_non_aliased_vuses (ao_ref *ref, tree vuse, The function returns the number of statements walked. */ static unsigned int -walk_aliased_vdefs_1 (tree ref, tree vdef, - bool (*walker)(tree, tree, void *), void *data, +walk_aliased_vdefs_1 (ao_ref *ref, tree vdef, + bool (*walker)(ao_ref *, tree, void *), void *data, bitmap *visited, unsigned int cnt) { do @@ -1455,7 +1455,7 @@ walk_aliased_vdefs_1 (tree ref, tree vdef, /* ??? Do we want to account this to TV_ALIAS_STMT_WALK? */ cnt++; if ((!ref - || stmt_may_clobber_ref_p (def_stmt, ref)) + || stmt_may_clobber_ref_p_1 (def_stmt, ref)) && (*walker) (ref, vdef, data)) return cnt; @@ -1465,8 +1465,8 @@ walk_aliased_vdefs_1 (tree ref, tree vdef, } unsigned int -walk_aliased_vdefs (tree ref, tree vdef, - bool (*walker)(tree, tree, void *), void *data, +walk_aliased_vdefs (ao_ref *ref, tree vdef, + bool (*walker)(ao_ref *, tree, void *), void *data, bitmap *visited) { bitmap local_visited = NULL; |