Commit 4c5248ce authored by yb9976's avatar yb9976
Browse files

Do not optimize a Phi of Stores with different types.

This fixes opt/fehler270.c.
parent 0cfbd7b7
...@@ -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;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment