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
0ba846c7
Commit
0ba846c7
authored
Sep 27, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(eliminate_regs_in_insn): If recognition fails on modified insn,
go ahead and modify just the same. From-SVN: r2258
parent
4a5d0fb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
gcc/reload1.c
+12
-10
No files found.
gcc/reload1.c
View file @
0ba846c7
...
...
@@ -2988,20 +2988,22 @@ eliminate_regs_in_insn (insn, replace)
if
(
new_body
!=
old_body
)
{
/* If we had a move insn but now we don't, rerecognize it. */
if
(
GET_CODE
(
old_body
)
==
SET
&&
GET_CODE
(
SET_SRC
(
old_body
))
==
REG
&&
(
GET_CODE
(
new_body
)
!=
SET
||
GET_CODE
(
SET_SRC
(
new_body
))
!=
REG
))
if
((
GET_CODE
(
old_body
)
==
SET
&&
GET_CODE
(
SET_SRC
(
old_body
))
==
REG
&&
(
GET_CODE
(
new_body
)
!=
SET
||
GET_CODE
(
SET_SRC
(
new_body
))
!=
REG
))
/* If this was an add insn before, rerecognize. */
||
(
GET_CODE
(
old_body
)
==
SET
&&
GET_CODE
(
SET_SRC
(
old_body
))
==
PLUS
))
{
if
(
!
validate_change
(
insn
,
&
PATTERN
(
insn
),
new_body
,
0
))
abort
();
/* If recognition fails, store the new body anyway.
It's normal to have recognition failures here
due to bizarre memory addresses; reloading will fix them. */
PATTERN
(
insn
)
=
new_body
;
}
/* If this was not a move insn, rerecognize. */
else
if
(
GET_CODE
(
old_body
)
!=
SET
||
GET_CODE
(
SET_SRC
(
old_body
))
!=
PLUS
||
!
validate_change
(
insn
,
&
PATTERN
(
insn
),
new_body
,
0
))
else
PATTERN
(
insn
)
=
new_body
;
/* ??? Is it really correct to store the new body anyway
if validate_change fails? Shouldn't this abort instead? */
if
(
replace
&&
REG_NOTES
(
insn
))
REG_NOTES
(
insn
)
=
eliminate_regs
(
REG_NOTES
(
insn
),
0
,
NULL_RTX
);
...
...
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