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
ccf5f342
Commit
ccf5f342
authored
Sep 06, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(emit_libcall_block): Don't move insns that reference things set in
previous insns. From-SVN: r5268
parent
f8163c92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
gcc/optabs.c
+6
-3
No files found.
gcc/optabs.c
View file @
ccf5f342
...
@@ -2295,9 +2295,10 @@ emit_libcall_block (insns, target, result, equiv)
...
@@ -2295,9 +2295,10 @@ emit_libcall_block (insns, target, result, equiv)
rtx
prev
,
next
,
first
,
last
,
insn
;
rtx
prev
,
next
,
first
,
last
,
insn
;
/* First emit all insns that set pseudos. Remove them from the list as
/* First emit all insns that set pseudos. Remove them from the list as
we go. Avoid insns that set pseudo which were referenced in previous
we go. Avoid insns that set pseudo
s
which were referenced in previous
insns. These can be generated by move_by_pieces, for example,
insns. These can be generated by move_by_pieces, for example,
to update an address. */
to update an address. Similarly, avoid insns that reference things
set in previous insns. */
for
(
insn
=
insns
;
insn
;
insn
=
next
)
for
(
insn
=
insns
;
insn
;
insn
=
next
)
{
{
...
@@ -2309,7 +2310,9 @@ emit_libcall_block (insns, target, result, equiv)
...
@@ -2309,7 +2310,9 @@ emit_libcall_block (insns, target, result, equiv)
&&
REGNO
(
SET_DEST
(
set
))
>=
FIRST_PSEUDO_REGISTER
&&
REGNO
(
SET_DEST
(
set
))
>=
FIRST_PSEUDO_REGISTER
&&
(
insn
==
insns
&&
(
insn
==
insns
||
(
!
reg_mentioned_p
(
SET_DEST
(
set
),
PATTERN
(
insns
))
||
(
!
reg_mentioned_p
(
SET_DEST
(
set
),
PATTERN
(
insns
))
&&
!
reg_used_between_p
(
SET_DEST
(
set
),
insns
,
insn
))))
&&
!
reg_used_between_p
(
SET_DEST
(
set
),
insns
,
insn
)
&&
!
modified_in_p
(
SET_SRC
(
set
),
insns
)
&&
!
modified_between_p
(
SET_SRC
(
set
),
insns
,
insn
))))
{
{
if
(
PREV_INSN
(
insn
))
if
(
PREV_INSN
(
insn
))
NEXT_INSN
(
PREV_INSN
(
insn
))
=
next
;
NEXT_INSN
(
PREV_INSN
(
insn
))
=
next
;
...
...
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