Commit 0cfbd7b7 authored by yb9976's avatar yb9976
Browse files

Handle kept memory Phis appropriately.

This fixes opt/fehler277.c.
parent 3fea1695
......@@ -988,8 +988,13 @@ static void fix_head_inversion(void)
pos = 0;
for_each_phi_safe(loop_head, phi, next) {
DB((dbg, LEVEL_5, "fix inverted head exchange %+F by %+F\n", phi, phis[pos]));
if (phis[pos] != phi)
if (phis[pos] != phi) {
if (get_Phi_loop(phi)) {
remove_keep_alive(phi);
set_Phi_loop(phi, false);
}
exchange(phi, phis[pos++]);
}
}
DEL_ARR_F(phis);
......
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