Optimize expand_omp_for_static_chunk for chunk_size one
authorTom de Vries <tom@codesourcery.com>
Mon, 24 Aug 2015 13:14:17 +0000 (13:14 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 24 Aug 2015 13:14:17 +0000 (13:14 +0000)
commit6be5c241bbf8f3b6cec45f0b1074156822a96359
treee8ba4654c7ecc7f4b815ad5cbf25b654f1dd4526
parent7373d132e1f364cb3ee2a045b6319a866f1e7d86
Optimize expand_omp_for_static_chunk for chunk_size one

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

PR tree-optimization/65468
* omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
chunk_size is one.

* gcc.dg/gomp/static-chunk-size-one.c: New test.

* testsuite/libgomp.c/static-chunk-size-one.c: New test.

From-SVN: r227124
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/static-chunk-size-one.c [new file with mode: 0644]
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/static-chunk-size-one.c [new file with mode: 0644]