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
c353ea5c
Commit
c353ea5c
authored
Mar 25, 2014
by
yb9976
Browse files
Load-store optimization: Removed wrong special case.
This fixes opt/loadstore6.c.
parent
4ba94858
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/ldstopt.c
View file @
c353ea5c
...
...
@@ -731,15 +731,6 @@ static changes_t follow_Mem_chain(ir_node *load, ir_node *curr)
if
(
new_ptr
)
{
res
|=
NODES_CREATED
;
ptr
=
new_ptr
;
/*
* Special case: If new_ptr points to
* a constant, we *can* replace the
* Load immediately.
*/
if
(
find_constant_entity
(
new_ptr
))
{
set_Load_ptr
(
load
,
new_ptr
);
return
res
|
DF_CHANGED
;
}
}
else
{
ir_alias_relation
rel
=
get_alias_relation
(
get_CopyB_dst
(
pred
),
...
...
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