Commit 65ee28ab authored by yb9976's avatar yb9976
Browse files

Reuse try_create_dest_am for sub-cmp-transformation.

This fixes backend/destam_flags3.c.
parent 5a7a2ef8
......@@ -3082,14 +3082,11 @@ static ir_node *transform_sub_or_store(ir_node *sub)
if (outs == 1) {
ir_node *succ = get_irn_out(sub, 0);
if (is_Store(succ) && !be_is_transformed(succ)) {
ir_node *new_store = be_transform_node(succ);
if (is_ia32_SubMem(new_store)) {
ir_node *new_store = try_create_dest_am(succ);
if (new_store) {
assert(is_ia32_SubMem(new_store));
be_set_transformed_node(succ, new_store);
return new_store;
} else {
ir_node *result = get_irn_n(new_store, n_ia32_Store_val);
if (is_Proj(result))
result = get_Proj_pred(result);
return result;
}
}
}
......
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