diff options
author | Zdenek Dvorak <ook@ucw.cz> | 2007-12-19 16:07:01 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2007-12-19 15:07:01 +0000 |
commit | 068e1875cd27f70b52cb9749f80534e44ea0ffc6 (patch) | |
tree | 71c3e93e1fe02a3ad283c84b46c0746d081d3660 /gcc/omp-low.c | |
parent | 8a171a5948d2c67775cb88046c224eb663c55fdf (diff) | |
download | gcc-068e1875cd27f70b52cb9749f80534e44ea0ffc6.zip gcc-068e1875cd27f70b52cb9749f80534e44ea0ffc6.tar.gz gcc-068e1875cd27f70b52cb9749f80534e44ea0ffc6.tar.bz2 |
omp-low.c (build_omp_regions_1): Recognition of combined parallels moved ...
* omp-low.c (build_omp_regions_1): Recognition of combined parallels
moved ...
(expand_omp): ... here.
* gcc.dg/gomp/combined-1.c: New test.
From-SVN: r131064
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 5323ec2..36fb13d 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -3952,6 +3952,11 @@ expand_omp (struct omp_region *region) { while (region) { + /* First, determine whether this is a combined parallel+workshare + region. */ + if (region->type == OMP_PARALLEL) + determine_parallel_type (region); + if (region->inner) expand_omp (region->inner); @@ -4028,11 +4033,6 @@ build_omp_regions_1 (basic_block bb, struct omp_region *parent, region = parent; region->exit = bb; parent = parent->outer; - - /* If REGION is a parallel region, determine whether it is - a combined parallel+workshare region. */ - if (region->type == OMP_PARALLEL) - determine_parallel_type (region); } else if (code == OMP_ATOMIC_STORE) { |