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
4c5248ce
Commit
4c5248ce
authored
Nov 13, 2014
by
yb9976
Browse files
Do not optimize a Phi of Stores with different types.
This fixes opt/fehler270.c.
parent
0cfbd7b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/ldstopt.c
View file @
4c5248ce
...
@@ -1341,8 +1341,9 @@ static changes_t optimize_phi(ir_node *phi, walk_env_t *wenv)
...
@@ -1341,8 +1341,9 @@ static changes_t optimize_phi(ir_node *phi, walk_env_t *wenv)
if
(
i
==
n
-
1
)
{
if
(
i
==
n
-
1
)
{
type
=
get_Store_type
(
store
);
type
=
get_Store_type
(
store
);
}
else
{
}
else
if
(
get_Store_type
(
store
)
!=
type
)
{
assert
(
type
==
get_Store_type
(
store
));
/* We cannot merge Stores with different types. */
return
NO_CHANGES
;
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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