re PR tree-optimization/81303 (410.bwaves regression caused by r249919)
authorRichard Biener <rguenther@suse.de>
Fri, 8 Dec 2017 08:06:31 +0000 (08:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 8 Dec 2017 08:06:31 +0000 (08:06 +0000)
commit8da4c8d83b7a21127cbe464aa54c5f3e7c034feb
treee7409b2670c511d8b3917122616fb4fbe1c09aa1
parent5cb7ca60332394a1afa7ed03b70d7718bf86cda3
re PR tree-optimization/81303 (410.bwaves regression caused by r249919)

2017-12-08  Richard Biener  <rguenther@suse.de>

PR tree-optimization/81303
* tree-vect-stmts.c (vect_is_simple_cond): For invariant
conditions try to create a comparison vector type matching
the data vector type.
(vectorizable_condition): Adjust.
* tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
Leave invariant conditions alone in case we can vectorize those.

* gcc.target/i386/vectorize9.c: New testcase.
* gcc.target/i386/vectorize10.c: New testcase.

From-SVN: r255497
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/vectorize10.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/vectorize9.c [new file with mode: 0644]
gcc/tree-vect-patterns.c
gcc/tree-vect-stmts.c