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
7abec5be
Commit
7abec5be
authored
Jan 30, 2003
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* expr.c (store_expr): Promote all MEM intermediates to regs.
From-SVN: r62173
parent
cdd1f01b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gcc/expr.c
+6
-6
No files found.
gcc/expr.c
View file @
7abec5be
...
...
@@ -4398,12 +4398,12 @@ store_expr (exp, target, want_value)
temp
=
expand_expr
(
exp
,
inner_target
,
VOIDmode
,
0
);
/* If TEMP is a
volatile MEM and we want a result value, make
the access now so it gets done only once. Likewise if
it contains TARGET. */
if
(
GET_CODE
(
temp
)
==
MEM
&&
want_value
&&
(
MEM_VOLATILE_P
(
temp
)
||
reg_mentioned_p
(
SUBREG_REG
(
target
),
XEXP
(
temp
,
0
)))
)
/* If TEMP is a
MEM and we want a result value, make the access
now so it gets done only once. Strictly speaking, this is
only necessary if the MEM is volatile, or if the address
overlaps TARGET. But not performing the load twice also
reduces the amount of rtl we generate and then have to CSE. */
if
(
GET_CODE
(
temp
)
==
MEM
&&
want_value
)
temp
=
copy_to_reg
(
temp
);
/* If TEMP is a VOIDmode constant, use convert_modes to make
...
...
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