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
2df71c02
Commit
2df71c02
authored
Feb 04, 2015
by
yb9976
Browse files
Prevent wrong store-after-store optimization.
This fixes opt/fehler287.c.
parent
3ed3ee8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
2df71c02
...
...
@@ -7435,7 +7435,8 @@ static ir_node *transform_node_Store(ir_node *n)
{
ir_node
*
mem
=
get_Store_mem
(
n
);
ir_node
*
ptr
=
get_Store_ptr
(
n
);
if
(
is_Proj
(
mem
))
{
/* The store might modify a global value that is used within a loop. */
if
(
is_Proj
(
mem
)
&&
only_one_user
(
mem
))
{
ir_node
*
pred_store
=
get_Proj_pred
(
mem
);
if
(
is_Store
(
pred_store
)
&&
get_Store_ptr
(
pred_store
)
==
ptr
&&
get_Store_volatility
(
pred_store
)
!=
volatility_is_volatile
)
{
...
...
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