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
03217a8b
Commit
03217a8b
authored
Jan 31, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(sched_analyze_insn): Add use dependencies for registers
mentioned in REG_DEAD notes. From-SVN: r6453
parent
80901ed8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
gcc/sched.c
+21
-0
No files found.
gcc/sched.c
View file @
03217a8b
...
...
@@ -2024,6 +2024,27 @@ sched_analyze_insn (x, insn)
else
sched_analyze_2
(
x
,
insn
);
/* After reload, it is possible for an instruction to have a REG_DEAD note
for a register that actually dies a few instructions earlier. For
example, this can happen with SECONDARY_MEMORY_NEEDED reloads.
In this case, we must consider the insn to use the register mentioned
in the REG_DEAD note. Otherwise, we may accidentally move this insn
after another insn that sets the register, thus getting obviously invalid
rtl. This confuses reorg which believes that REG_DEAD notes are still
meaningful.
??? We would get better code if we fixed reload to put the REG_DEAD
notes in the right places, but that may not be worth the effort. */
if
(
reload_completed
)
{
rtx
note
;
for
(
note
=
REG_NOTES
(
insn
);
note
;
note
=
XEXP
(
note
,
1
))
if
(
REG_NOTE_KIND
(
note
)
==
REG_DEAD
)
sched_analyze_2
(
XEXP
(
note
,
0
),
insn
);
}
/* Handle function calls and function returns created by the epilogue
threading code. */
if
(
GET_CODE
(
insn
)
==
CALL_INSN
||
GET_CODE
(
insn
)
==
JUMP_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