diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-30 21:42:24 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-30 21:42:24 +0000 |
commit | acc0a673001763578afb6999d7fa4a895d5765b0 (patch) | |
tree | 068cab532d908429dd98af8fb423e99df7e9ae99 /gcc/tree-ssa-loop-im.c | |
parent | 9ed8e9d137ea515b72ec364c09939450fc2bb902 (diff) | |
download | gcc-acc0a673001763578afb6999d7fa4a895d5765b0.tar.gz |
2008-04-30 Richard Guenther <rguenther@suse.de>
PR tree-optimization/32921
* tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134838 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
-rw-r--r-- | gcc/tree-ssa-loop-im.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c index 6402a8e6244..c896abb8ba7 100644 --- a/gcc/tree-ssa-loop-im.c +++ b/gcc/tree-ssa-loop-im.c @@ -1640,6 +1640,8 @@ mem_refs_may_alias_p (tree mem1, tree mem2, struct pointer_map_t **ttae_cache) && SSA_VAR_P (mem1) && !AGGREGATE_TYPE_P (TREE_TYPE (mem1))) return false; + if (!alias_sets_conflict_p (get_alias_set (mem1), get_alias_set (mem2))) + return false; } /* The expansion of addresses may be a bit expensive, thus we only do |