Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
eaf2fbec
Commit
eaf2fbec
authored
Mar 25, 2014
by
yb9976
Browse files
Load-store optimization: Ensure that address points to constant memory.
parent
0913ee35
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/ldstopt.c
View file @
eaf2fbec
...
...
@@ -238,7 +238,9 @@ static ir_entity *find_constant_entity(ir_node *ptr)
{
for
(;;)
{
if
(
is_Address
(
ptr
))
{
return
get_Address_entity
(
ptr
);
ir_entity
*
ent
=
get_Address_entity
(
ptr
);
if
(
get_entity_linkage
(
ent
)
&
IR_LINKAGE_CONSTANT
)
return
ent
;
}
else
if
(
is_Sel
(
ptr
))
{
ir_entity
*
ent
=
get_Sel_entity
(
ptr
);
ir_type
*
tp
=
get_entity_owner
(
ent
);
...
...
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