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
922d9d40
Commit
922d9d40
authored
Jun 11, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(eliminate_regs_in_insn): Don't use a later elimination than
eliminate_regs would use. From-SVN: r4663
parent
eda115dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
gcc/reload1.c
+15
-7
No files found.
gcc/reload1.c
View file @
922d9d40
...
@@ -3107,14 +3107,22 @@ eliminate_regs_in_insn (insn, replace)
...
@@ -3107,14 +3107,22 @@ eliminate_regs_in_insn (insn, replace)
for
(
ep
=
reg_eliminate
;
ep
<
&
reg_eliminate
[
NUM_ELIMINABLE_REGS
];
for
(
ep
=
reg_eliminate
;
ep
<
&
reg_eliminate
[
NUM_ELIMINABLE_REGS
];
ep
++
)
ep
++
)
if
(
ep
->
from_rtx
==
XEXP
(
SET_SRC
(
old_body
),
0
)
if
(
ep
->
from_rtx
==
XEXP
(
SET_SRC
(
old_body
),
0
)
&&
ep
->
can_eliminate
&&
ep
->
can_eliminate
)
&&
ep
->
offset
==
-
INTVAL
(
XEXP
(
SET_SRC
(
old_body
),
1
)))
{
{
PATTERN
(
insn
)
=
gen_rtx
(
SET
,
VOIDmode
,
/* We must stop at the first elimination that will be used.
SET_DEST
(
old_body
),
ep
->
to_rtx
);
If this one would replace the PLUS with a REG, do it
INSN_CODE
(
insn
)
=
-
1
;
now. Otherwise, quit the loop and let eliminate_regs
val
=
1
;
do its normal replacement. */
goto
done
;
if
(
ep
->
offset
==
-
INTVAL
(
XEXP
(
SET_SRC
(
old_body
),
1
)))
{
PATTERN
(
insn
)
=
gen_rtx
(
SET
,
VOIDmode
,
SET_DEST
(
old_body
),
ep
->
to_rtx
);
INSN_CODE
(
insn
)
=
-
1
;
val
=
1
;
goto
done
;
}
break
;
}
}
}
}
...
...
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