mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-25 18:54:51 +08:00
Mark offloaded functions as parallelized
2015-06-09 Tom de Vries <tom@codesourcery.com> PR tree-optimization/65460 * omp-low.c (expand_omp_target): Set parallelized_function on cgraph_node for child_fn. From-SVN: r224303
This commit is contained in:
parent
edafad14e1
commit
c2f5769122
@ -1,3 +1,9 @@
|
||||
2015-06-09 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
PR tree-optimization/65460
|
||||
* omp-low.c (expand_omp_target): Set parallelized_function on
|
||||
cgraph_node for child_fn.
|
||||
|
||||
2015-06-09 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
* omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
|
||||
|
@ -8959,6 +8959,8 @@ expand_omp_target (struct omp_region *region)
|
||||
|
||||
/* Inform the callgraph about the new function. */
|
||||
DECL_STRUCT_FUNCTION (child_fn)->curr_properties = cfun->curr_properties;
|
||||
cgraph_node *node = cgraph_node::get_create (child_fn);
|
||||
node->parallelized_function = 1;
|
||||
cgraph_node::add_new_function (child_fn, true);
|
||||
|
||||
#ifdef ENABLE_OFFLOADING
|
||||
|
Loading…
Reference in New Issue
Block a user