re PR tree-optimization/50596 (Problems in vectorization of condition expression)
authorJakub Jelinek <jakub@redhat.com>
Thu, 6 Oct 2011 17:49:36 +0000 (19:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 6 Oct 2011 17:49:36 +0000 (19:49 +0200)
commit69d2aade06017139c9e5be9c749f84d33766c1de
tree7b76d530ce6387f36c6a3185daad85fe6b8d400a
parent810cfbebfad8981bd8e4aea6a247ad4ee1c24ec0
re PR tree-optimization/50596 (Problems in vectorization of condition expression)

PR tree-optimization/50596
* tree-vectorizer.h (vect_is_simple_cond): New prototype.
(NUM_PATTERNS): Change to 6.
* tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
function.
(vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
(vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
if it already has one, and don't set STMT_VINFO_VECTYPE in it
if it is already set.
* tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
COND_EXPR in pattern stmts.
(vect_is_simple_cond): No longer static.

* lib/target-supports.exp (check_effective_target_vect_cond_mixed):
New.
* gcc.dg/vect/vect-cond-8.c: New test.

From-SVN: r179626
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-cond-8.c [new file with mode: 0644]
gcc/testsuite/lib/target-supports.exp
gcc/tree-vect-patterns.c
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.h