Handle double reduction in parloops
authorTom de Vries <tom@codesourcery.com>
Tue, 28 Jul 2015 07:54:04 +0000 (07:54 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 28 Jul 2015 07:54:04 +0000 (07:54 +0000)
commit12efb1d75f459d7c69bfaededd398f9724ee67bb
treec8e721d99e98b1d94dbde05660f4bbdccf11aa88
parent70b47b619938d465c89370bfc5bf1988cfd0415b
Handle double reduction in parloops

2015-07-28  Tom de Vries  <tom@codesourcery.com>

* tree-parloops.c (reduc_stmt_res): New function.
(initialize_reductions, add_field_for_reduction)
(create_phi_for_local_result, create_loads_for_reductions)
(create_stores_for_reduction, build_new_reduction): Handle case that
reduc_stmt is a phi.
(gather_scalar_reductions): Allow double_reduc reductions.

* gcc.dg/autopar/uns-outer-4.c: Remove xfail on scan for parallelizing
outer loop.

* testsuite/libgomp.c/uns-outer-4.c: New test.

From-SVN: r226300
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/uns-outer-4.c
gcc/tree-parloops.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/uns-outer-4.c [new file with mode: 0644]