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
46aea932
Commit
46aea932
authored
Aug 12, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(sched_analyze_insn): Handle USE before a JUMP_INSN just
like a USE before a CALL_INSN. From-SVN: r5141
parent
2e7ac77c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
gcc/sched.c
+10
-3
No files found.
gcc/sched.c
View file @
46aea932
...
...
@@ -1963,14 +1963,21 @@ sched_analyze_insn (x, insn)
else
sched_analyze_2
(
x
,
insn
);
/* Handle function calls. */
if
(
GET_CODE
(
insn
)
==
CALL_INSN
)
/* Handle function calls and function returns created by the epilogue
threading code. */
if
(
GET_CODE
(
insn
)
==
CALL_INSN
||
GET_CODE
(
insn
)
==
JUMP_INSN
)
{
rtx
dep_insn
;
rtx
prev_dep_insn
;
/* When scheduling instructions, we make sure calls don't lose their
accompanying USE insns by depending them one on another in order. */
accompanying USE insns by depending them one on another in order.
Also, we must do the same thing for returns created by the epilogue
threading code. Note this code works only in this special case,
because other passes make no guarantee that they will never emit
an instruction between a USE and a RETURN. There is such a guarantee
for USE instructions immediately before a call. */
prev_dep_insn
=
insn
;
dep_insn
=
PREV_INSN
(
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