tree-vectorizer.h (vect_loop_vectorized_call): Declare.
authorRichard Biener <rguenther@suse.de>
Thu, 13 Jun 2019 10:10:05 +0000 (10:10 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 13 Jun 2019 10:10:05 +0000 (10:10 +0000)
commit2778a719bebf7a32c34638cb39e9697c93ed484a
treeb0fd6841c2d5a59a0187fd41497e3a2c69e4a2a7
parentfa8ba8b84cf4f1caf581b09d808d6e57b1ff2843
tree-vectorizer.h (vect_loop_vectorized_call): Declare.

2019-06-13  Richard Biener  <rguenther@suse.de>

* tree-vectorizer.h (vect_loop_vectorized_call): Declare.
* tree-vectorizer.c (vect_loop_vectorized_call): Export and
also return the condition stmt.
* tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
loop we can version and version that, reusing the loop version
created by if-conversion instead of versioning again.

* gcc.dg/vect/vect-version-1.c: New testcase.
* gcc.dg/vect/vect-version-2.c: Likewise.

From-SVN: r272239
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-version-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-version-2.c [new file with mode: 0644]
gcc/tree-vect-loop-manip.c
gcc/tree-vectorizer.c
gcc/tree-vectorizer.h