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
dcaac07d
Commit
dcaac07d
authored
Jul 31, 2011
by
Revital Eres
Committed by
Revital Eres
Jul 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the creation of anti-dep edge
From-SVN: r176972
parent
0291fa25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
gcc/ChangeLog
+7
-0
gcc/ddg.c
+4
-6
No files found.
gcc/ChangeLog
View file @
dcaac07d
2011-07-31 Revital Eres <revital.eres@linaro.org>
* ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
of anti-dep edge from a branch.
(add_cross_iteration_register_deps): Create anti-dep edge from
a branch.
2011-07-31 Revital Eres <revital.eres@linaro.org>
* modulo-sched.c: Change comment.
(reset_sched_times): Fix print message.
(print_partial_schedule): Add print info.
...
...
gcc/ddg.c
View file @
dcaac07d
...
...
@@ -197,11 +197,6 @@ create_ddg_dep_from_intra_loop_link (ddg_ptr g, ddg_node_ptr src_node,
}
}
/* If a true dep edge enters the branch create an anti edge in the
opposite direction to prevent the creation of reg-moves. */
if
((
DEP_TYPE
(
link
)
==
REG_DEP_TRUE
)
&&
JUMP_P
(
dest_node
->
insn
))
create_ddg_dep_no_link
(
g
,
dest_node
,
src_node
,
ANTI_DEP
,
REG_DEP
,
1
);
latency
=
dep_cost
(
link
);
e
=
create_ddg_edge
(
src_node
,
dest_node
,
t
,
dt
,
latency
,
distance
);
add_edge_to_ddg
(
g
,
e
);
...
...
@@ -306,8 +301,11 @@ add_cross_iteration_register_deps (ddg_ptr g, df_ref last_def)
gcc_assert
(
first_def_node
);
/* Always create the edge if the use node is a branch in
order to prevent the creation of reg-moves. */
if
(
DF_REF_ID
(
last_def
)
!=
DF_REF_ID
(
first_def
)
||
!
flag_modulo_sched_allow_regmoves
)
||
!
flag_modulo_sched_allow_regmoves
||
JUMP_P
(
use_node
->
insn
))
create_ddg_dep_no_link
(
g
,
use_node
,
first_def_node
,
ANTI_DEP
,
REG_DEP
,
1
);
...
...
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