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
94714ecc
Commit
94714ecc
authored
Feb 15, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(eliminate_regs, case USE): If using a register that is source of
elimination, show can't be eliminated. From-SVN: r11277
parent
a8a8cbb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
gcc/reload1.c
+13
-1
No files found.
gcc/reload1.c
View file @
94714ecc
...
...
@@ -2894,7 +2894,6 @@ eliminate_regs (x, mem_mode, insn)
}
/* Fall through to generic unary operation case. */
case
USE
:
case
STRICT_LOW_PART
:
case
NEG
:
case
NOT
:
case
SIGN_EXTEND
:
case
ZERO_EXTEND
:
...
...
@@ -2983,6 +2982,19 @@ eliminate_regs (x, mem_mode, insn)
return
x
;
case
USE
:
/* If using a register that is the source of an eliminate we still
think can be performed, note it cannot be performed since we don't
know how this register is used. */
for
(
ep
=
reg_eliminate
;
ep
<
&
reg_eliminate
[
NUM_ELIMINABLE_REGS
];
ep
++
)
if
(
ep
->
from_rtx
==
XEXP
(
x
,
0
))
ep
->
can_eliminate
=
0
;
new
=
eliminate_regs
(
XEXP
(
x
,
0
),
mem_mode
,
insn
);
if
(
new
!=
XEXP
(
x
,
0
))
return
gen_rtx
(
code
,
GET_MODE
(
x
),
new
);
return
x
;
case
CLOBBER
:
/* If clobbering a register that is the replacement register for an
elimination we still think can be performed, note that it cannot
...
...
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