diff options
author | Richard Henderson <rth@redhat.com> | 2005-06-28 17:36:31 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2005-06-28 17:36:31 -0700 |
commit | dcb081fc082c2c6ba19b6d82f5fa067d987c30d6 (patch) | |
tree | 775f75c93c3b81e9956e444ff2846bf901b5168e /gcc/tree-vectorizer.c | |
parent | 6283ba266f3f633712cfdf2ebe68010f2187513a (diff) | |
download | gcc-dcb081fc082c2c6ba19b6d82f5fa067d987c30d6.zip gcc-dcb081fc082c2c6ba19b6d82f5fa067d987c30d6.tar.gz gcc-dcb081fc082c2c6ba19b6d82f5fa067d987c30d6.tar.bz2 |
tree-vectorizer.c (vect_is_simple_reduction): Compare types using TYPE_MAIN_VARIANT.
* tree-vectorizer.c (vect_is_simple_reduction): Compare types
using TYPE_MAIN_VARIANT.
From-SVN: r101407
Diffstat (limited to 'gcc/tree-vectorizer.c')
-rw-r--r-- | gcc/tree-vectorizer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index cf16f66..169b306 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)) { |