diff options
author | Richard Guenther <rguenther@suse.de> | 2006-05-06 17:37:53 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2006-05-06 17:37:53 +0000 |
commit | 75bfa67836449ebe29c760185ccae8ce070a4e9c (patch) | |
tree | f020a91e9818ef4ec2243fe403201ddbd3dd0eb4 /gcc/tree-vect-transform.c | |
parent | 2297e173c6f3530f5d6f24d45dd605b540025031 (diff) | |
download | gcc-75bfa67836449ebe29c760185ccae8ce070a4e9c.zip gcc-75bfa67836449ebe29c760185ccae8ce070a4e9c.tar.gz gcc-75bfa67836449ebe29c760185ccae8ce070a4e9c.tar.bz2 |
re PR tree-optimization/27151 (ICE with -ftree-vectorize with mixed types)
2006-05-06 Richard Guenther <rguenther@suse.de>
PR tree-optimization/27151
* tree-vect-transform.c (vectorizable_condition): Punt on
values that have a different type than the condition.
* gcc.dg/vect/pr27151.c: New testcase.
From-SVN: r113580
Diffstat (limited to 'gcc/tree-vect-transform.c')
-rw-r--r-- | gcc/tree-vect-transform.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-vect-transform.c b/gcc/tree-vect-transform.c index b1a9b0a..8c65b86 100644 --- a/gcc/tree-vect-transform.c +++ b/gcc/tree-vect-transform.c @@ -2117,6 +2117,11 @@ vectorizable_condition (tree stmt, block_stmt_iterator *bsi, tree *vec_stmt) then_clause = TREE_OPERAND (op, 1); else_clause = TREE_OPERAND (op, 2); + /* We do not handle two different vector types for the condition + and the values. */ + if (TREE_TYPE (TREE_OPERAND (cond_expr, 0)) != TREE_TYPE (vectype)) + return false; + if (!vect_is_simple_cond (cond_expr, loop_vinfo)) return false; |