diff options
author | Richard Guenther <rguenther@suse.de> | 2008-04-30 21:42:24 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-04-30 21:42:24 +0000 |
commit | a91ded4bb889da5eef83123edb59203979dee491 (patch) | |
tree | 068cab532d908429dd98af8fb423e99df7e9ae99 /gcc/tree-ssa-loop-im.c | |
parent | d75900af9b5083a20dd2615a093f532043976618 (diff) | |
download | gcc-a91ded4bb889da5eef83123edb59203979dee491.zip gcc-a91ded4bb889da5eef83123edb59203979dee491.tar.gz gcc-a91ded4bb889da5eef83123edb59203979dee491.tar.bz2 |
re PR tree-optimization/32921 (Revision 126326 causes 12% slowdown)
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.
From-SVN: r134838
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 6402a8e..c896abb 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 |