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
49a30d00
Commit
49a30d00
authored
Jun 20, 2011
by
Bernd Schmidt
Committed by
Bernd Schmidt
Jun 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* regrename.c (do_replace): Don't update notes.
From-SVN: r175203
parent
dfb43cd5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
32 deletions
+4
-32
gcc/ChangeLog
+4
-0
gcc/regrename.c
+0
-32
No files found.
gcc/ChangeLog
View file @
49a30d00
2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
* regrename.c (do_replace): Don't update notes.
2011-06-20 Alan Modra <amodra@gmail.com>
2011-06-20 Alan Modra <amodra@gmail.com>
* config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
* config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
...
...
gcc/regrename.c
View file @
49a30d00
...
@@ -432,7 +432,6 @@ do_replace (struct du_head *head, int reg)
...
@@ -432,7 +432,6 @@ do_replace (struct du_head *head, int reg)
{
{
struct
du_chain
*
chain
;
struct
du_chain
*
chain
;
unsigned
int
base_regno
=
head
->
regno
;
unsigned
int
base_regno
=
head
->
regno
;
bool
found_note
=
false
;
gcc_assert
(
!
DEBUG_INSN_P
(
head
->
first
->
insn
));
gcc_assert
(
!
DEBUG_INSN_P
(
head
->
first
->
insn
));
...
@@ -446,46 +445,15 @@ do_replace (struct du_head *head, int reg)
...
@@ -446,46 +445,15 @@ do_replace (struct du_head *head, 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
))
{
enum
reg_note
kind
=
REG_NOTE_KIND
(
note
);
if
(
kind
==
REG_DEAD
||
kind
==
REG_UNUSED
)
{
rtx
reg
=
XEXP
(
note
,
0
);
gcc_assert
(
HARD_REGISTER_P
(
reg
));
if
(
REGNO
(
reg
)
==
base_regno
)
{
found_note
=
true
;
if
(
kind
==
REG_DEAD
&&
reg_set_p
(
*
chain
->
loc
,
chain
->
insn
))
remove_note
(
chain
->
insn
,
note
);
else
XEXP
(
note
,
0
)
=
*
chain
->
loc
;
break
;
}
}
}
}
}
df_insn_rescan
(
chain
->
insn
);
df_insn_rescan
(
chain
->
insn
);
}
}
if
(
!
found_note
)
{
/* If the chain's first insn is the same as the last, we should have
found a REG_UNUSED note. */
gcc_assert
(
head
->
first
->
insn
!=
head
->
last
->
insn
);
if
(
!
reg_set_p
(
*
head
->
last
->
loc
,
head
->
last
->
insn
))
add_reg_note
(
head
->
last
->
insn
,
REG_DEAD
,
*
head
->
last
->
loc
);
}
}
}
...
...
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