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
442b891d
Commit
442b891d
authored
Sep 30, 2011
by
Revital Eres
Committed by
Revital Eres
Sep 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SMS: Avoid generating redundant reg-moves
From-SVN: r179380
parent
f27a3d37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletions
+22
-1
gcc/ChangeLog
+6
-0
gcc/modulo-sched.c
+16
-1
No files found.
gcc/ChangeLog
View file @
442b891d
2011-09-30 Revital Eres <revital.eres@linaro.org>
* modulo-sched.c (generate_reg_moves): Skip instructions that
do not set a register and verify no regmoves are created for
!single_set instructions.
2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
* hw-doloop.c (scan_loop): Compute register usage only for non-debug
gcc/modulo-sched.c
View file @
442b891d
...
...
@@ -476,7 +476,12 @@ generate_reg_moves (partial_schedule_ptr ps, bool rescan)
sbitmap
*
uses_of_defs
;
rtx
last_reg_move
;
rtx
prev_reg
,
old_reg
;
rtx
set
=
single_set
(
u
->
insn
);
/* Skip instructions that do not set a register. */
if
((
set
&&
!
REG_P
(
SET_DEST
(
set
))))
continue
;
/* Compute the number of reg_moves needed for u, by looking at life
ranges started at u (excluding self-loops). */
for
(
e
=
u
->
out
;
e
;
e
=
e
->
next_out
)
...
...
@@ -493,6 +498,16 @@ generate_reg_moves (partial_schedule_ptr ps, bool rescan)
&&
SCHED_COLUMN
(
e
->
dest
)
<
SCHED_COLUMN
(
e
->
src
))
nreg_moves4e
--
;
if
(
nreg_moves4e
>=
1
)
{
/* !single_set instructions are not supported yet and
thus we do not except to encounter them in the loop
except from the doloop part. For the latter case
we assume no regmoves are generated as the doloop
instructions are tied to the branch with an edge. */
gcc_assert
(
set
);
}
nreg_moves
=
MAX
(
nreg_moves
,
nreg_moves4e
);
}
...
...
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