diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-03-21 10:14:10 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-03-21 10:14:10 +0000 |
commit | a79b7ec516a40f54db581dc4223ef4ebaa8e6884 (patch) | |
tree | 3e31088bf1f5cd99f298747e11fb859e37c8927f /gcc/omp-low.c | |
parent | 2691415b63b472998f128ef2299146e7950918fc (diff) | |
download | gcc-a79b7ec516a40f54db581dc4223ef4ebaa8e6884.zip gcc-a79b7ec516a40f54db581dc4223ef4ebaa8e6884.tar.gz gcc-a79b7ec516a40f54db581dc4223ef4ebaa8e6884.tar.bz2 |
Mark omp thread functions as parallelized
2015-03-21 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/65458
* cgraph.c (cgraph_node::dump): Handle parallelized_function field.
* cgraph.h (cgraph_node): Add parallelized_function field.
* lto-cgraph.c (lto_output_node): Write parallelized_function field.
(input_overwrite_node): Read parallelized_function field.
* omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
parallelized_function on cgraph_node for child_fn.
* tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
Remove include of gt-tree-parloops.h.
(parallelized_functions): Remove static variable.
(parallelized_function_p): Rewrite using parallelized_function field of
cgraph_node.
(create_loop_fn): Remove adding to parallelized_functions.
* Makefile.in (GTFILES): Remove tree-parloops.c
From-SVN: r221551
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 48d73cb..80bddf0 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -1564,6 +1564,7 @@ finalize_task_copyfn (gomp_task *task_stmt) /* Inform the callgraph about the new function. */ cgraph_node::add_new_function (child_fn, false); + cgraph_node::get (child_fn)->parallelized_function = 1; } /* Destroy a omp_context data structures. Called through the splay tree @@ -5569,6 +5570,7 @@ expand_omp_taskreg (struct omp_region *region) /* Inform the callgraph about the new function. */ DECL_STRUCT_FUNCTION (child_fn)->curr_properties = cfun->curr_properties; cgraph_node::add_new_function (child_fn, true); + cgraph_node::get (child_fn)->parallelized_function = 1; /* Fix the callgraph edges for child_cfun. Those for cfun will be fixed in a following pass. */ |