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
c1875d66
Commit
c1875d66
authored
Jun 28, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(find_reloads_address): Be selective about what inner
addresses to allow in an indirect mem ref. From-SVN: r4783
parent
8b3d0251
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
gcc/reload.c
+8
-2
No files found.
gcc/reload.c
View file @
c1875d66
...
...
@@ -3888,10 +3888,16 @@ find_reloads_address (mode, memrefloc, ad, loc, opnum, type, ind_levels)
}
/* We can avoid a reload if the register's equivalent memory expression
is valid as an indirect memory address. */
is valid as an indirect memory address.
But not all addresses are valid in a mem used as an indirect address:
only reg or reg+constant. */
else
if
(
reg_equiv_mem
[
regno
]
!=
0
&&
ind_levels
>
0
&&
strict_memory_address_p
(
mode
,
reg_equiv_mem
[
regno
]))
&&
strict_memory_address_p
(
mode
,
reg_equiv_mem
[
regno
])
&&
(
GET_CODE
(
XEXP
(
reg_equiv_mem
[
regno
],
0
))
==
REG
||
(
GET_CODE
(
XEXP
(
reg_equiv_mem
[
regno
],
0
))
==
PLUS
&&
GET_CODE
(
XEXP
(
XEXP
(
reg_equiv_mem
[
regno
],
0
),
0
))
==
REG
&&
CONSTANT_P
(
XEXP
(
XEXP
(
reg_equiv_mem
[
regno
],
0
),
0
)))))
return
0
;
/* The only remaining case where we can avoid a reload is if this is a
...
...
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