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
413e50a2
Commit
413e50a2
authored
Jul 31, 2011
by
Revital Eres
Committed by
Revital Eres
Jul 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SMS: Misc. fixes
From-SVN: r176970
parent
f047e518
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
11 deletions
+23
-11
gcc/ChangeLog
+6
-0
gcc/modulo-sched.c
+17
-11
No files found.
gcc/ChangeLog
View file @
413e50a2
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.
2011-07-31 Tom de Vries <tom@codesourcery.com>
PR middle-end/43513
...
...
gcc/modulo-sched.c
View file @
413e50a2
...
...
@@ -84,13 +84,14 @@ along with GCC; see the file COPYING3. If not see
II cycles (i.e. use register copies to prevent a def from overwriting
itself before reaching the use).
SMS works with countable loops whose loop count can be easily
adjusted. This is because we peel a constant number of iterations
into a prologue and epilogue for which we want to avoid emitting
the control part, and a kernel which is to iterate that constant
number of iterations less than the original loop. So the control
part should be a set of insns clearly identified and having its
own iv, not otherwise used in the loop (at-least for now), which
SMS works with countable loops (1) whose control part can be easily
decoupled from the rest of the loop and (2) whose loop count can
be easily adjusted. This is because we peel a constant number of
iterations into a prologue and epilogue for which we want to avoid
emitting the control part, and a kernel which is to iterate that
constant number of iterations less than the original loop. So the
control part should be a set of insns clearly identified and having
its own iv, not otherwise used in the loop (at-least for now), which
initializes a register before the loop to the number of iterations.
Currently SMS relies on the do-loop pattern to recognize such loops,
where (1) the control part comprises of all insns defining and/or
...
...
@@ -598,8 +599,8 @@ reset_sched_times (partial_schedule_ptr ps, int amount)
/* Print the scheduling times after the rotation. */
fprintf
(
dump_file
,
"crr_insn->node=%d (insn id %d), "
"crr_insn->cycle=%d, min_cycle=%d"
,
crr_insn
->
node
->
cuid
,
INSN_UID
(
crr_insn
->
node
->
insn
),
SCHED_TIME
(
u
)
,
n
ormalized_tim
e
);
INSN_UID
(
crr_insn
->
node
->
insn
),
normalized_time
,
n
ew_min_cycl
e
);
if
(
JUMP_P
(
crr_insn
->
node
->
insn
))
fprintf
(
dump_file
,
" (branch)"
);
fprintf
(
dump_file
,
"
\n
"
);
...
...
@@ -2550,8 +2551,13 @@ print_partial_schedule (partial_schedule_ptr ps, FILE *dump)
fprintf
(
dump
,
"
\n
[ROW %d ]: "
,
i
);
while
(
ps_i
)
{
fprintf
(
dump
,
"%d, "
,
INSN_UID
(
ps_i
->
node
->
insn
));
if
(
JUMP_P
(
ps_i
->
node
->
insn
))
fprintf
(
dump
,
"%d (branch), "
,
INSN_UID
(
ps_i
->
node
->
insn
));
else
fprintf
(
dump
,
"%d, "
,
INSN_UID
(
ps_i
->
node
->
insn
));
ps_i
=
ps_i
->
next_in_row
;
}
}
...
...
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