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
9b72fab4
Commit
9b72fab4
authored
Mar 22, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r565
parent
6d518002
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
gcc/reorg.c
+8
-7
No files found.
gcc/reorg.c
View file @
9b72fab4
...
...
@@ -2820,21 +2820,22 @@ fill_slots_from_thread (insn, condition, thread, opposite_thread, likely,
We could check for more complex cases than those tested below,
but it doesn't seem worth it. It might also be a good idea to try
to swap the two insns. That might do better. */
to swap the two insns. That might do better.
We can't do this if the next insn modifies our source, because that
would make the replacement into the insn invalid. This also
prevents updating the contents of a PRE_INC. */
if
(
GET_CODE
(
trial
)
==
INSN
&&
GET_CODE
(
pat
)
==
SET
&&
GET_CODE
(
SET_SRC
(
pat
))
==
REG
&&
GET_CODE
(
SET_DEST
(
pat
))
==
REG
)
{
rtx
next
=
next_nonnote_insn
(
trial
);
int
our_dest
=
REGNO
(
SET_DEST
(
pat
));
if
(
next
&&
GET_CODE
(
next
)
==
INSN
&&
GET_CODE
(
PATTERN
(
next
))
==
SET
&&
GET_CODE
(
SET_DEST
(
PATTERN
(
next
)))
==
REG
&&
REGNO
(
SET_DEST
(
PATTERN
(
next
)))
!=
our_dest
&&
refers_to_regno_p
(
our_dest
,
our_dest
+
1
,
SET_SRC
(
PATTERN
(
next
)),
0
))
&&
GET_CODE
(
PATTERN
(
next
))
!=
USE
&&
!
reg_set_p
(
SET_DEST
(
pat
),
next
)
&&
reg_referenced_p
(
SET_DEST
(
pat
),
PATTERN
(
next
)))
validate_replace_rtx
(
SET_DEST
(
pat
),
SET_SRC
(
pat
),
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