summaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-21 10:14:10 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-21 10:14:10 +0000
commit66460ec1ca00302fa8c2e2b4dbca1e9ea807ac9f (patch)
tree3e31088bf1f5cd99f298747e11fb859e37c8927f /gcc/cgraph.c
parent3c4e189973c43b7f3c2ebb27abf32e9cb175ba82 (diff)
downloadgcc-66460ec1ca00302fa8c2e2b4dbca1e9ea807ac9f.tar.gz
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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221551 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index e2958c4a508..35164f9f406 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2008,6 +2008,8 @@ cgraph_node::dump (FILE *f)
fprintf (f, " only_called_at_exit");
if (opt_for_fn (decl, optimize_size))
fprintf (f, " optimize_size");
+ if (parallelized_function)
+ fprintf (f, " parallelized_function");
fprintf (f, "\n");