diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-17 11:42:11 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-17 11:42:11 +0000 |
commit | 65f174dddb16ce35aa149ee140952ee107431bc1 (patch) | |
tree | 7a9cca363d997be715d76fb169665299d0a9b318 /gcc/alias.c | |
parent | 3fb60a460274ad26d9c806bf3468865198331741 (diff) | |
download | gcc-65f174dddb16ce35aa149ee140952ee107431bc1.tar.gz |
2008-09-17 Richard Guenther <rguenther@suse.de>
PR middle-end/37385
PR tree-optimization/37491
* alias.c (get_alias_set): Use the canonical type.
* tree-vect-transform.c (vectorizable_store): Use the type of
the lhs for the vector type. Adjust checking.
(vectorizable_load): Adjust checking.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140412 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 56660ec38d9..35a40bc99a8 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -604,8 +604,11 @@ get_alias_set (tree t) } /* Variant qualifiers don't affect the alias set, so get the main - variant. If this is a type with a known alias set, return it. */ + variant. Always use the canonical type as well. + If this is a type with a known alias set, return it. */ t = TYPE_MAIN_VARIANT (t); + if (TYPE_CANONICAL (t)) + t = TYPE_CANONICAL (t); if (TYPE_ALIAS_SET_KNOWN_P (t)) return TYPE_ALIAS_SET (t); |