aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2015-06-09 21:14:46 +0000
committerTom de Vries <vries@gcc.gnu.org>2015-06-09 21:14:46 +0000
commitc2f576912212bcd7f791472ddb285b127797a163 (patch)
tree6fb78eabe9a7c9ca900d30fb99ee3f02ba76ac54 /gcc
parentedafad14e1e338540801849152e6267e7a52ad19 (diff)
downloadgcc-c2f576912212bcd7f791472ddb285b127797a163.zip
gcc-c2f576912212bcd7f791472ddb285b127797a163.tar.gz
gcc-c2f576912212bcd7f791472ddb285b127797a163.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/omp-low.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8709621..d9d299d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
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
parallelized_function before add_new_function.
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 2045e48..77716bf 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -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