Commit b673f7ec authored by yb9976's avatar yb9976
Browse files

Set loop flag for changed Phi M nodes.

This fixes opt/fehler283.c.
parent 72b0929d
......@@ -175,6 +175,11 @@ static void construct_ssa(ir_node *orig_block, ir_node *orig_val,
DB((dbg, LEVEL_4, ">>>> Setting input %d of %+F to %+F\n", j, user,
newval));
set_irn_n(user, j, newval);
if (is_Phi(user) && get_irn_mode(user) == mode_M && !get_Phi_loop(user)) {
set_Phi_loop(user, true);
keep_alive(user);
keep_alive(user_block);
}
}
}
}
......
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