Add transform_to_exit_first_loop_alt
authorTom de Vries <tom@codesourcery.com>
Fri, 5 Jun 2015 15:57:34 +0000 (15:57 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Fri, 5 Jun 2015 15:57:34 +0000 (15:57 +0000)
commit7c82d82716dd3e5c3377b2392e02e9c2454382fa
tree299636b9713d77014b892241dd301e1b62c714b3
parentddb63209a8dc059a7b2a137d7a1859222bb43dd6
Add transform_to_exit_first_loop_alt

2015-06-05  Tom de Vries  <tom@codesourcery.com>

merge from gomp4 branch:
2015-05-28  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/65443
* tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
(replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
(try_transform_to_exit_first_loop_alt): New function.
(transform_to_exit_first_loop): Use
try_transform_to_exit_first_loop_alt.

* gcc.dg/parloops-exit-first-loop-alt-2.c: New test.
* gcc.dg/parloops-exit-first-loop-alt-3.c: New test.
* gcc.dg/parloops-exit-first-loop-alt.c: New test.

* testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
* testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
* testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.

From-SVN: r224154
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt.c [new file with mode: 0644]
gcc/tree-parloops.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt.c [new file with mode: 0644]