Mark omp thread functions as parallelized
authorTom de Vries <tom@codesourcery.com>
Sat, 21 Mar 2015 10:14:10 +0000 (10:14 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sat, 21 Mar 2015 10:14:10 +0000 (10:14 +0000)
commita79b7ec516a40f54db581dc4223ef4ebaa8e6884
tree3e31088bf1f5cd99f298747e11fb859e37c8927f
parent2691415b63b472998f128ef2299146e7950918fc
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
gcc/ChangeLog
gcc/Makefile.in
gcc/cgraph.c
gcc/cgraph.h
gcc/lto-cgraph.c
gcc/omp-low.c
gcc/tree-parloops.c