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
c7b1ed2b
Commit
c7b1ed2b
authored
Mar 22, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(optimize_reg_copy_1): Only update reg_live_length if it is
non-negative. From-SVN: r11596
parent
55e44288
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
gcc/local-alloc.c
+9
-3
No files found.
gcc/local-alloc.c
View file @
c7b1ed2b
...
...
@@ -818,18 +818,24 @@ optimize_reg_copy_1 (insn, dest, src)
{
if
(
sregno
>=
FIRST_PSEUDO_REGISTER
)
{
if
(
reg_live_length
[
sregno
]
>=
0
)
{
reg_live_length
[
sregno
]
-=
length
;
/* reg_live_length is only an approximation after combine
if sched is not run, so make sure that we still hav
e
a reasonable value. */
/* reg_live_length is only an approximation after
combine if sched is not run, so make sure that w
e
still have
a reasonable value. */
if
(
reg_live_length
[
sregno
]
<
2
)
reg_live_length
[
sregno
]
=
2
;
}
reg_n_calls_crossed
[
sregno
]
-=
n_calls
;
}
if
(
dregno
>=
FIRST_PSEUDO_REGISTER
)
{
if
(
reg_live_length
[
dregno
]
>=
0
)
reg_live_length
[
dregno
]
+=
d_length
;
reg_n_calls_crossed
[
dregno
]
+=
d_n_calls
;
}
...
...
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