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
af94453d
Commit
af94453d
authored
Sep 15, 2009
by
Christian Bruel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update REG_DEAD notes
From-SVN: r151720
parent
384ed84d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
gcc/regrename.c
+15
-0
No files found.
gcc/regrename.c
View file @
af94453d
...
@@ -376,11 +376,26 @@ do_replace (struct du_chain *chain, int reg)
...
@@ -376,11 +376,26 @@ do_replace (struct du_chain *chain, int reg)
INSN_VAR_LOCATION_LOC
(
chain
->
insn
)
=
gen_rtx_UNKNOWN_VAR_LOC
();
INSN_VAR_LOCATION_LOC
(
chain
->
insn
)
=
gen_rtx_UNKNOWN_VAR_LOC
();
else
else
{
{
rtx
note
;
*
chain
->
loc
=
gen_raw_REG
(
GET_MODE
(
*
chain
->
loc
),
reg
);
*
chain
->
loc
=
gen_raw_REG
(
GET_MODE
(
*
chain
->
loc
),
reg
);
if
(
regno
>=
FIRST_PSEUDO_REGISTER
)
if
(
regno
>=
FIRST_PSEUDO_REGISTER
)
ORIGINAL_REGNO
(
*
chain
->
loc
)
=
regno
;
ORIGINAL_REGNO
(
*
chain
->
loc
)
=
regno
;
REG_ATTRS
(
*
chain
->
loc
)
=
attr
;
REG_ATTRS
(
*
chain
->
loc
)
=
attr
;
REG_POINTER
(
*
chain
->
loc
)
=
reg_ptr
;
REG_POINTER
(
*
chain
->
loc
)
=
reg_ptr
;
for
(
note
=
REG_NOTES
(
chain
->
insn
);
note
;
note
=
XEXP
(
note
,
1
))
{
if
(
REG_NOTE_KIND
(
note
)
==
REG_DEAD
||
REG_NOTE_KIND
(
note
)
==
REG_UNUSED
)
{
rtx
reg
=
XEXP
(
note
,
0
);
gcc_assert
(
HARD_REGISTER_P
(
reg
));
if
(
REGNO
(
reg
)
==
base_regno
)
XEXP
(
note
,
0
)
=
*
chain
->
loc
;
}
}
}
}
df_insn_rescan
(
chain
->
insn
);
df_insn_rescan
(
chain
->
insn
);
...
...
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