Add empty loop exit block in transform_to_exit_first_loop_alt
authorTom de Vries <tom@codesourcery.com>
Tue, 7 Jul 2015 16:25:22 +0000 (16:25 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 7 Jul 2015 16:25:22 +0000 (16:25 +0000)
commit712cb0bbf3228eb87d18d98c34dc19c9cfb4dd18
tree6d1a0ad67ce5b56c22276557f6944f258bcb30d6
parent338392ed0fd9ca466905860e931b7a480179bce4
Add empty loop exit block in transform_to_exit_first_loop_alt

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

PR tree-optimization/66642
* tree-parloops.c (transform_to_exit_first_loop_alt): Update function
header comment.  Rename split_edge variable to edge_at_split.  Split
exit edge to create new loop exit bb.  Insert loop exit phis in new loop
exit bb.

* testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
iteration count case.
* testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
function, factor out of ...
(main): ... here.  Test low iteration count case.

From-SVN: r225521
gcc/ChangeLog
gcc/tree-parloops.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c
libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt.c