Fix inner loop phi in expand_omp_for_static_chunk
authorTom de Vries <tom@codesourcery.com>
Thu, 3 Sep 2015 11:01:14 +0000 (11:01 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 3 Sep 2015 11:01:14 +0000 (11:01 +0000)
commit1b96e9a4bfb7d1ed3e4795288b69e0ba8b08f330
tree135974571dbf7f23c3c4e4d50e4fb8a510ae8965
parent8050766eaef0077f0af28dab1c0fe6f1aad724bb
Fix inner loop phi in expand_omp_for_static_chunk

2015-09-03  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/65637
* omp-low.c (find_phi_with_arg_on_edge): New function.
(expand_omp_for_static_chunk): Fix inner loop phi.

* testsuite/libgomp.c/autopar-2.c: New test.

From-SVN: r227437
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/autopar-2.c [new file with mode: 0644]