aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-05-15 08:21:32 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-05-15 08:21:32 +0000
commit45ff5edaea467950434730376d3abd8e6cebe196 (patch)
tree99675451abeb5c9e80d68e0b7b6f15dd819bb283 /gcc/tree-ssa-alias.c
parente491ed09b31dc8ab89cf84cc5f94b3ee02792d12 (diff)
downloadgcc-45ff5edaea467950434730376d3abd8e6cebe196.zip
gcc-45ff5edaea467950434730376d3abd8e6cebe196.tar.gz
gcc-45ff5edaea467950434730376d3abd8e6cebe196.tar.bz2
re PR tree-optimization/34330 (-ftree-parallelize-loops=4 ICE with the vectorizer also)
2008-05-15 Richard Guenther <rguenther@suse.de> PR tree-optimization/34330 * tree-ssa-alias.c (get_smt_for): Only assert that accesses through the pointer will alias the SMT. * gcc.dg/torture/pr34330.c: New testcase. From-SVN: r135329
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r--gcc/tree-ssa-alias.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index ddd7937..a054329 100644
--- a/gcc/tree-ssa-alias.c
+++ b/gcc/tree-ssa-alias.c
@@ -3025,8 +3025,11 @@ get_smt_for (tree ptr, struct alias_info *ai)
TREE_THIS_VOLATILE (tag) |= TREE_THIS_VOLATILE (tag_type);
/* Make sure that the symbol tag has the same alias set as the
- pointed-to type. */
- gcc_assert (tag_set == get_alias_set (tag));
+ pointed-to type or at least accesses through the pointer will
+ alias that set. The latter can happen after the vectorizer
+ created pointers of vector type. */
+ gcc_assert (tag_set == get_alias_set (tag)
+ || alias_set_subset_of (tag_set, get_alias_set (tag)));
return tag;
}