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
cc1efdff
Commit
cc1efdff
authored
Oct 30, 2011
by
Revital Eres
Committed by
Revital Eres
Oct 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix marking of SMSed loops as BB_DISABLE_SCHEDULE
From-SVN: r180673
parent
6908120a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
gcc/ChangeLog
+7
-0
gcc/modulo-sched.c
+20
-2
No files found.
gcc/ChangeLog
View file @
cc1efdff
2011
-
10
-
30
Revital
Eres
<
revital
.
eres
@linaro
.
org
>
*
modulo
-
sched
.
c
(
generate_prolog_epilog
)
:
Mark
prolog
and
epilog
as
BB_DISABLE_SCHEDULE
.
(
mark_loop_unsched
)
:
New
function
.
(
sms_schedule
)
:
Call
it
.
2011
-
10
-
29
John
David
Anglin
<
dave
.
anglin
@nrc
-
cnrc
.
gc
.
ca
>
PR
target
/
50617
gcc/modulo-sched.c
View file @
cc1efdff
...
...
@@ -1173,6 +1173,8 @@ generate_prolog_epilog (partial_schedule_ptr ps, struct loop *loop,
/* Put the prolog on the entry edge. */
e
=
loop_preheader_edge
(
loop
);
split_edge_and_insert
(
e
,
get_insns
());
if
(
!
flag_resched_modulo_sched
)
e
->
dest
->
flags
|=
BB_DISABLE_SCHEDULE
;
end_sequence
();
...
...
@@ -1186,9 +1188,24 @@ generate_prolog_epilog (partial_schedule_ptr ps, struct loop *loop,
gcc_assert
(
single_exit
(
loop
));
e
=
single_exit
(
loop
);
split_edge_and_insert
(
e
,
get_insns
());
if
(
!
flag_resched_modulo_sched
)
e
->
dest
->
flags
|=
BB_DISABLE_SCHEDULE
;
end_sequence
();
}
/* Mark LOOP as software pipelined so the later
scheduling passes don't touch it. */
static
void
mark_loop_unsched
(
struct
loop
*
loop
)
{
unsigned
i
;
basic_block
*
bbs
=
get_loop_body
(
loop
);
for
(
i
=
0
;
i
<
loop
->
num_nodes
;
i
++
)
bbs
[
i
]
->
flags
|=
BB_DISABLE_SCHEDULE
;
}
/* Return true if all the BBs of the loop are empty except the
loop header. */
static
bool
...
...
@@ -1714,9 +1731,10 @@ sms_schedule (void)
permute_partial_schedule
(
ps
,
g
->
closing_branch
->
first_note
);
/* Mark this loop as software pipelined so the later
scheduling passes do
es
n't touch it. */
scheduling passes don't touch it. */
if
(
!
flag_resched_modulo_sched
)
g
->
bb
->
flags
|=
BB_DISABLE_SCHEDULE
;
mark_loop_unsched
(
loop
);
/* The life-info is not valid any more. */
df_set_bb_dirty
(
g
->
bb
);
...
...
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