* cgraphbuild.c (build_cgraph_edges): Use ipa-reference to represent OMP.

From-SVN: r165989
This commit is contained in:
Jan Hubicka 2010-10-27 00:32:47 +02:00 committed by Jan Hubicka
parent d5fae4575b
commit 8c3800373f
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2010-10-26 Jan Hubicka <jh@suse.cz>
* cgraphbuild.c (build_cgraph_edges): Use ipa-reference to represent OMP.
2010-10-26 Jan Hubicka <jh@suse.cz>
* ipa.c (process_references): Enqueue all referenced nodes;

View File

@ -361,16 +361,19 @@ build_cgraph_edges (void)
&& gimple_omp_parallel_child_fn (stmt))
{
tree fn = gimple_omp_parallel_child_fn (stmt);
cgraph_mark_needed_node (cgraph_node (fn));
ipa_record_reference (node, NULL, cgraph_node (fn),
NULL, IPA_REF_ADDR, stmt);
}
if (gimple_code (stmt) == GIMPLE_OMP_TASK)
{
tree fn = gimple_omp_task_child_fn (stmt);
if (fn)
cgraph_mark_needed_node (cgraph_node (fn));
ipa_record_reference (node, NULL, cgraph_node (fn),
NULL, IPA_REF_ADDR, stmt);
fn = gimple_omp_task_copy_fn (stmt);
if (fn)
cgraph_mark_needed_node (cgraph_node (fn));
ipa_record_reference (node, NULL, cgraph_node (fn),
NULL, IPA_REF_ADDR, stmt);
}
}
for (gsi = gsi_start (phi_nodes (bb)); !gsi_end_p (gsi); gsi_next (&gsi))