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
badea87d
Commit
badea87d
authored
Jun 03, 2005
by
Bernd Schmidt
Committed by
Bernd Schmidt
Jun 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert my previous patch.
From-SVN: r100536
parent
b956116e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
gcc/ChangeLog
+4
-0
gcc/reload1.c
+11
-8
No files found.
gcc/ChangeLog
View file @
badea87d
2005-06-02 Bernd Schmidt <bernd.schmidt@analog.com>
* reload1.c (reload): Revert my previous patch.
2005-06-03 Nick Clifton <nickc@redhat.com>
* config/arm/semi.h (ASM_SPEC): Fix typo passing -mfloat-abi to
...
...
gcc/reload1.c
View file @
badea87d
...
...
@@ -752,7 +752,7 @@ reload (rtx first, int global)
for equivalences. This is overly conservative as
we could find all sets of the destination pseudo
and remove them as they should be redundant. */
if
(
memory_operand
(
x
,
VOIDmode
))
if
(
memory_operand
(
x
,
VOIDmode
)
&&
!
MEM_READONLY_P
(
x
)
)
{
/* Always unshare the equivalence, so we can
substitute into this insn without touching the
...
...
@@ -787,8 +787,14 @@ reload (rtx first, int global)
else
continue
;
reg_equiv_init
[
i
]
=
gen_rtx_INSN_LIST
(
VOIDmode
,
insn
,
reg_equiv_init
[
i
]);
/* If this register is being made equivalent to a MEM
and the MEM is not SET_SRC, the equivalencing insn
is one with the MEM as a SET_DEST and it occurs later.
So don't mark this insn now. */
if
(
!
MEM_P
(
x
)
||
rtx_equal_p
(
SET_SRC
(
set
),
x
))
reg_equiv_init
[
i
]
=
gen_rtx_INSN_LIST
(
VOIDmode
,
insn
,
reg_equiv_init
[
i
]);
}
}
}
...
...
@@ -800,12 +806,9 @@ reload (rtx first, int global)
&&
reg_equiv_memory_loc
[
REGNO
(
SET_SRC
(
set
))]
&&
rtx_equal_p
(
SET_DEST
(
set
),
reg_equiv_memory_loc
[
REGNO
(
SET_SRC
(
set
))]))
/* Equivalences made this way only have one initializing insn.
Previously, we may have set reg_equiv_init when encountering a
SET of this pseudo; discard that insn since it does not set up
an equivalence. */
reg_equiv_init
[
REGNO
(
SET_SRC
(
set
))]
=
gen_rtx_INSN_LIST
(
VOIDmode
,
insn
,
NULL_RTX
);
=
gen_rtx_INSN_LIST
(
VOIDmode
,
insn
,
reg_equiv_init
[
REGNO
(
SET_SRC
(
set
))]);
if
(
INSN_P
(
insn
))
scan_paradoxical_subregs
(
PATTERN
(
insn
));
...
...
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