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
7dbe2fdc
Commit
7dbe2fdc
authored
Jun 15, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove erroneously-installed change.
From-SVN: r7492
parent
60103a34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
21 deletions
+10
-21
gcc/reload1.c
+10
-21
No files found.
gcc/reload1.c
View file @
7dbe2fdc
...
@@ -3119,8 +3119,6 @@ eliminate_regs_in_insn (insn, replace)
...
@@ -3119,8 +3119,6 @@ eliminate_regs_in_insn (insn, replace)
{
{
rtx
old_body
=
PATTERN
(
insn
);
rtx
old_body
=
PATTERN
(
insn
);
rtx
new_body
;
rtx
new_body
;
rtx
old_set
;
rtx
new_set
;
int
val
=
0
;
int
val
=
0
;
struct
elim_table
*
ep
;
struct
elim_table
*
ep
;
...
@@ -3191,12 +3189,6 @@ eliminate_regs_in_insn (insn, replace)
...
@@ -3191,12 +3189,6 @@ eliminate_regs_in_insn (insn, replace)
new_body
=
eliminate_regs
(
old_body
,
0
,
replace
?
insn
:
NULL_RTX
);
new_body
=
eliminate_regs
(
old_body
,
0
,
replace
?
insn
:
NULL_RTX
);
if
(
new_body
!=
old_body
)
if
(
new_body
!=
old_body
)
{
{
old_set
=
(
GET_CODE
(
old_body
)
==
PARALLEL
)
?
single_set
(
insn
)
:
old_body
;
new_set
=
(
GET_CODE
(
new_body
)
==
PARALLEL
)
?
XVECEXP
(
new_body
,
0
,
0
)
:
new_body
;
/* If we aren't replacing things permanently and we changed something,
/* If we aren't replacing things permanently and we changed something,
make another copy to ensure that all the RTL is new. Otherwise
make another copy to ensure that all the RTL is new. Otherwise
things can go wrong if find_reload swaps commutative operands
things can go wrong if find_reload swaps commutative operands
...
@@ -3208,25 +3200,22 @@ eliminate_regs_in_insn (insn, replace)
...
@@ -3208,25 +3200,22 @@ eliminate_regs_in_insn (insn, replace)
new_body
=
copy_rtx
(
new_body
);
new_body
=
copy_rtx
(
new_body
);
/* If we had a move insn but now we don't, rerecognize it. */
/* If we had a move insn but now we don't, rerecognize it. */
if
((
GET_CODE
(
old_
set
)
==
SET
&&
GET_CODE
(
SET_SRC
(
old_set
))
==
REG
if
((
GET_CODE
(
old_
body
)
==
SET
&&
GET_CODE
(
SET_SRC
(
old_body
))
==
REG
&&
(
GET_CODE
(
new_
set
)
!=
SET
&&
(
GET_CODE
(
new_
body
)
!=
SET
||
GET_CODE
(
SET_SRC
(
new_
set
))
!=
REG
))
||
GET_CODE
(
SET_SRC
(
new_
body
))
!=
REG
))
/* If this was a load from or store to memory, compare
/* If this was a load from or store to memory, compare
the MEM in recog_operand to the one in the insn. If they
the MEM in recog_operand to the one in the insn. If they
are not equal, then rerecognize the insn. */
are not equal, then rerecognize the insn. */
||
(
GET_CODE
(
old_
set
)
==
SET
||
(
GET_CODE
(
old_
body
)
==
SET
&&
((
GET_CODE
(
SET_SRC
(
old_
set
))
==
MEM
&&
((
GET_CODE
(
SET_SRC
(
old_
body
))
==
MEM
&&
SET_SRC
(
old_
set
)
!=
recog_operand
[
1
])
&&
SET_SRC
(
old_
body
)
!=
recog_operand
[
1
])
||
(
GET_CODE
(
SET_DEST
(
old_
set
))
==
MEM
||
(
GET_CODE
(
SET_DEST
(
old_
body
))
==
MEM
&&
SET_DEST
(
old_
set
)
!=
recog_operand
[
0
])))
&&
SET_DEST
(
old_
body
)
!=
recog_operand
[
0
])))
/* If this was an add insn before, rerecognize. */
/* If this was an add insn before, rerecognize. */
||
||
(
GET_CODE
(
old_
set
)
==
SET
(
GET_CODE
(
old_
body
)
==
SET
&&
GET_CODE
(
SET_SRC
(
old_
set
))
==
PLUS
))
&&
GET_CODE
(
SET_SRC
(
old_
body
))
==
PLUS
))
{
{
if
(
!
replace
)
PATTERN
(
insn
)
=
copy_rtx
(
PATTERN
(
insn
));
if
(
!
validate_change
(
insn
,
&
PATTERN
(
insn
),
new_body
,
0
))
if
(
!
validate_change
(
insn
,
&
PATTERN
(
insn
),
new_body
,
0
))
/* If recognition fails, store the new body anyway.
/* If recognition fails, store the new body anyway.
It's normal to have recognition failures here
It's normal to have recognition failures here
...
...
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