diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-29 00:36:31 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-29 00:36:31 +0000 |
commit | 2a165e7bfb330347cf62a01108dcd0b656dd9975 (patch) | |
tree | 775f75c93c3b81e9956e444ff2846bf901b5168e /gcc | |
parent | 008c3704f18423d5db05dab18e8c3a5344e5532e (diff) | |
download | gcc-2a165e7bfb330347cf62a01108dcd0b656dd9975.tar.gz |
* tree-vectorizer.c (vect_is_simple_reduction): Compare types
using TYPE_MAIN_VARIANT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101407 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-vectorizer.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bd0a65ca5fd..aaf27cfc07b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2005-06-28 Richard Henderson <rth@redhat.com> + * tree-vectorizer.c (vect_is_simple_reduction): Compare types + using TYPE_MAIN_VARIANT. + +2005-06-28 Richard Henderson <rth@redhat.com> + * config/ia64/ia64.c (ia64_expand_vecint_compare): Decompose to EQ when using psubN.uuu. diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index cf16f66628a..169b3060039 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -1870,9 +1870,10 @@ vect_is_simple_reduction (struct loop *loop ATTRIBUTE_UNUSED, return NULL_TREE; } - /* Check that it's ok to change the order of the computation */ + /* Check that it's ok to change the order of the computation. */ type = TREE_TYPE (operation); - if (type != TREE_TYPE (op1) || type != TREE_TYPE (op2)) + if (TYPE_MAIN_VARIANT (type) != TYPE_MAIN_VARIANT (TREE_TYPE (op1)) + || TYPE_MAIN_VARIANT (type) != TYPE_MAIN_VARIANT (TREE_TYPE (op2))) { if (vect_print_dump_info (REPORT_DETAILS, UNKNOWN_LOC)) { |