aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sccvn.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-12-05 14:31:44 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-12-05 14:31:44 +0000
commit14cd91f923c6977d085287a91b26b32919754047 (patch)
tree337d4dd6961a88c69b24dda561d596121394e7e4 /gcc/tree-ssa-sccvn.c
parent68872bedca22a323d3dafc68c53975a35fde87b2 (diff)
downloadgcc-14cd91f923c6977d085287a91b26b32919754047.zip
gcc-14cd91f923c6977d085287a91b26b32919754047.tar.gz
gcc-14cd91f923c6977d085287a91b26b32919754047.tar.bz2
tree-ssa-alias.h (struct ao_ref_s): Add volatile_p field.
2011-12-05 Richard Guenther <rguenther@suse.de> * tree-ssa-alias.h (struct ao_ref_s): Add volatile_p field. * tree-ssa-alias.c (ao_ref_init): Initialize it. (ao_ref_init_from_ptr_and_size): Likewise. (refs_may_alias_p_1): Two volatile accesses conflict. (ref_maybe_used_by_call_p_1): Likewise. (call_may_clobber_ref_p_1): Likewise. * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Initialize volatile_p field. From-SVN: r182009
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r--gcc/tree-ssa-sccvn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index fa268c2..274def3 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -918,6 +918,8 @@ ao_ref_init_from_vn_reference (ao_ref *ref,
ref->base_alias_set = base_alias_set;
else
ref->base_alias_set = get_alias_set (base);
+ /* We discount volatiles from value-numbering elsewhere. */
+ ref->volatile_p = false;
return true;
}