]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/50596 (Problems in vectorization of condition expression)
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 Oct 2011 08:02:08 +0000 (10:02 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 25 Oct 2011 08:02:08 +0000 (10:02 +0200)
commitab0ef7069390b376263a13cb1dbdf38883d664d7
tree98fa7d9be8e8feb32d1a93e13c5d8bc78f7ac8b8
parentdb8543789305f6d56005bba91f784831d3745970
re PR tree-optimization/50596 (Problems in vectorization of condition expression)

PR tree-optimization/50596
* tree-vect-stmts.c (vect_mark_relevant): Only use
FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
(vectorizable_store): If is_pattern_stmt_p look through
VIEW_CONVERT_EXPR on lhs.
* tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
Use unsigned type instead of signed.
(vect_recog_bool_pattern): Optimize also stores into bool memory in
addition to casts from bool to integral types.
(vect_mark_pattern_stmts): If pattern_stmt already has vinfo
created, don't create it again.

* gcc.dg/vect/vect-cond-10.c: New test.

From-SVN: r180424
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-cond-10.c [new file with mode: 0644]
gcc/tree-vect-patterns.c
gcc/tree-vect-stmts.c