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
50270076
Commit
50270076
authored
Mar 22, 1999
by
J"orn Rennecke
Committed by
Joern Rennecke
Mar 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cse.c (cse_insn): Don't change the result register of a libcall.
From-SVN: r25898
parent
ce9d4c6d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
gcc/ChangeLog
+4
-0
gcc/cse.c
+7
-2
No files found.
gcc/ChangeLog
View file @
50270076
Mon
Mar
22
21
:
51
:
57
1999
J
"orn Rennecke <amylaar@cygnus.co.uk>
* cse.c (cse_insn): Don't change the result register of a libcall.
Mon Mar 22 21:08:59 1999 J"
orn
Rennecke
<
amylaar
@cygnus
.
co
.
uk
>
*
rtl
.
h
(
shallow_copy_rtx
)
:
Declare
.
...
...
gcc/cse.c
View file @
50270076
...
...
@@ -7802,7 +7802,11 @@ cse_insn (insn, libcall_insn)
then be used in the sequel and we may be changing a two-operand insn
into a three-operand insn.
Also do not do this if we are operating on a copy of INSN. */
Also do not do this if we are operating on a copy of INSN.
Also don't do this if INSN ends a libcall; this would cause an unrelated
register to be set in the middle of a libcall, and we then get bad code
if the libcall is deleted. */
if
(
n_sets
==
1
&&
sets
[
0
].
rtl
&&
GET_CODE
(
SET_DEST
(
sets
[
0
].
rtl
))
==
REG
&&
NEXT_INSN
(
PREV_INSN
(
insn
))
==
insn
...
...
@@ -7810,7 +7814,8 @@ cse_insn (insn, libcall_insn)
&&
REGNO
(
SET_SRC
(
sets
[
0
].
rtl
))
>=
FIRST_PSEUDO_REGISTER
&&
REGNO_QTY_VALID_P
(
REGNO
(
SET_SRC
(
sets
[
0
].
rtl
)))
&&
(
qty_first_reg
[
reg_qty
[
REGNO
(
SET_SRC
(
sets
[
0
].
rtl
))]]
==
REGNO
(
SET_DEST
(
sets
[
0
].
rtl
))))
==
REGNO
(
SET_DEST
(
sets
[
0
].
rtl
)))
&&
!
find_reg_note
(
insn
,
REG_RETVAL
,
NULL_RTX
))
{
rtx
prev
=
PREV_INSN
(
insn
);
while
(
prev
&&
GET_CODE
(
prev
)
==
NOTE
)
...
...
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