mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 22:11:47 +08:00
* cgraphbuild.c (build_cgraph_edges): Use ipa-reference to represent OMP.
From-SVN: r165989
This commit is contained in:
parent
d5fae4575b
commit
8c3800373f
@ -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;
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user