enable live condition vectorization
authorRichard Biener <rguenther@suse.de>
Wed, 9 Sep 2020 08:36:46 +0000 (10:36 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 9 Sep 2020 09:36:19 +0000 (11:36 +0200)
commit783dc66f9ccb0019c3dad2701bb9110286758d70
treee7d54a5d276ed7fbfb17e9edfb945856aacccb23
parent0d7d52131a4a0e480465ced7ae049e7eae2d3efd
enable live condition vectorization

This removes a check preventing vectorization of live results of
vectorized conditions.

2020-09-09  Richard Biener  <rguenther@suse.de>

* tree-vect-stmts.c (vectorizable_condition): Allow
STMT_VINFO_LIVE_P stmts.

* gcc.dg/vect/vect-cond-13.c: New testcase.
* gcc.target/i386/pr87007-4.c: Adjust.
* gcc.target/i386/pr87007-5.c: Likewise.
gcc/testsuite/gcc.dg/vect/vect-cond-13.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr87007-4.c
gcc/testsuite/gcc.target/i386/pr87007-5.c
gcc/tree-vect-stmts.c