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
b39555b4
Commit
b39555b4
authored
Feb 16, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(find_reloads_address): Use strict_memory_address_p
to check for valid indirect address. From-SVN: r3478
parent
c14f2655
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
19 deletions
+6
-19
gcc/reload.c
+6
-19
No files found.
gcc/reload.c
View file @
b39555b4
...
@@ -3590,25 +3590,12 @@ find_reloads_address (mode, memrefloc, ad, loc, operand, ind_levels)
...
@@ -3590,25 +3590,12 @@ find_reloads_address (mode, memrefloc, ad, loc, operand, ind_levels)
return
1
;
return
1
;
}
}
else
if
(
reg_equiv_mem
[
regno
]
!=
0
)
/* We can avoid a reload if the register's equivalent memory expression
{
is valid as an indirect memory address. */
tem
=
XEXP
(
reg_equiv_mem
[
regno
],
0
);
else
if
(
reg_equiv_mem
[
regno
]
!=
0
&&
ind_levels
>
0
/* If we can't indirect any more, a pseudo must be reloaded.
&&
strict_memory_address_p
(
mode
,
reg_equiv_mem
[
regno
]))
If the pseudo's address in its MEM is a SYMBOL_REF, it
return
0
;
must be reloaded unless indirect_symref_ok. Otherwise, it
can be reloaded if the address is REG or REG + CONST_INT. */
if
(
ind_levels
>
0
&&
!
(
GET_CODE
(
tem
)
==
SYMBOL_REF
&&
!
indirect_symref_ok
)
&&
((
GET_CODE
(
tem
)
==
REG
&&
REGNO
(
tem
)
<
FIRST_PSEUDO_REGISTER
)
||
(
GET_CODE
(
tem
)
==
PLUS
&&
GET_CODE
(
XEXP
(
tem
,
0
))
==
REG
&&
REGNO
(
XEXP
(
tem
,
0
))
<
FIRST_PSEUDO_REGISTER
&&
GET_CODE
(
XEXP
(
tem
,
1
))
==
CONST_INT
)))
return
0
;
}
/* The only remaining case where we can avoid a reload is if this is a
/* The only remaining case where we can avoid a reload is if this is a
hard register that is valid as a base register and which is not the
hard register that is valid as a base register and which is not the
...
...
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