omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and on privatization...
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Jun 2019 07:36:30 +0000 (09:36 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Jun 2019 07:36:30 +0000 (09:36 +0200)
commit9ea2bfca6a3fd80f14d24557f71efaafae3846a9
tree4f11b3d2665e2abeafb2f1f15ac22d8375afb747
parent5259a047c31c5a8c13eba73c914ca325e85eb699
omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and on privatization clauses OMP_CLAUSE_DECL is...

* omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
on privatization clauses OMP_CLAUSE_DECL is privatized by reference
and references a VLA.  Handle references to non-VLAs if is_simd
all privatization clauses like reductions.
(lower_rec_input_clauses) <case do_private, case do_firstprivate>:
If omp_is_reference, use always omp simd arrays and set
DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
fails, emit reference initialization.

* g++.dg/vect/simd-1.cc: New test.

From-SVN: r271947
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/vect/simd-1.cc [new file with mode: 0644]