Commit 702a4760 authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

fix opt/loop_without_phi

Memory loops without Phis can occur in unreachable code.
Make ldstopt handle this by ignorance.
parent 0a0b836f
...@@ -1847,8 +1847,10 @@ static void move_loads_out_of_loops(scc *pscc, loop_env *env) ...@@ -1847,8 +1847,10 @@ static void move_loads_out_of_loops(scc *pscc, loop_env *env)
} }
} }
} }
/* no Phis no fun */
assert(phi_list != NULL && "DFS found a loop without Phi"); /* Within unreachable code, there might be memory loops without Phis. */
if (phi_list == NULL)
return;
/* for now, we cannot handle more than one input (only reducible cf) */ /* for now, we cannot handle more than one input (only reducible cf) */
if (phi_list->next != NULL) if (phi_list->next != NULL)
......
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