Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
8c380037
Commit
8c380037
authored
Oct 27, 2010
by
Jan Hubicka
Committed by
Jan Hubicka
Oct 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cgraphbuild.c (build_cgraph_edges): Use ipa-reference to represent OMP.
From-SVN: r165989
parent
d5fae457
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
gcc/ChangeLog
+4
-0
gcc/cgraphbuild.c
+6
-3
No files found.
gcc/ChangeLog
View file @
8c380037
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
;
mark
as
reachable
only
non
-
external
nodes
.
(
cgraph_remove_unreachable_nodes
)
:
All
referenced
nodes
should
gcc/cgraphbuild.c
View file @
8c380037
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment