Commit 53621afc authored by yb9976's avatar yb9976
Browse files

Consider all Projs, since they may have normal users.

parent 6779f14d
......@@ -1164,12 +1164,10 @@ bool only_used_by_keepalive(const ir_node *node)
foreach_out_edge(node, edge) {
ir_node *succ = get_edge_src_irn(edge);
if (is_End(succ)) {
if (is_End(succ) || (is_Proj(succ) && only_used_by_keepalive(succ))) {
kept = true;
continue;
}
if (is_Proj(succ) && only_used_by_keepalive(succ))
return true;
/* found a real user */
return false;
}
......
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