diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-05 14:31:44 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-05 14:31:44 +0000 |
commit | 3787db52d353b800afbf6f7efa0e8102b5691e7b (patch) | |
tree | 337d4dd6961a88c69b24dda561d596121394e7e4 /gcc/tree-ssa-sccvn.c | |
parent | 82209c6e8a9bcb989c1327c21a5e4dc7d1ae8655 (diff) | |
download | gcc-3787db52d353b800afbf6f7efa0e8102b5691e7b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182009 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r-- | gcc/tree-ssa-sccvn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index fa268c2ef8b..274def32d5a 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; } |