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)
if (i == n - 1) {
type = get_Store_type(store);
} else {
assert(type == get_Store_type(store));
} else if (get_Store_type(store) != type) {
/* We cannot merge Stores with different types. */
return NO_CHANGES;
}
}
......
Markdown is supported
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