Commit 3f93aa80 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove further keep-edge hacks for endless loops.

parent 7a4380ff
......@@ -240,11 +240,6 @@ static ir_node *set_phi_arguments(ir_node *phi, int pos)
irn_verify_irg(phi, irg);
/* Memory Phis in endless loops must be kept alive.
As we can't distinguish these easily we keep all of them alive. */
if (mode == mode_M)
add_End_keepalive(get_irg_end(irg), phi);
return phi;
......@@ -690,8 +690,6 @@ static void apply_result(ir_node* const irn, void* ctx)
} else if (m == mode_X) {
ir_graph* const irg = get_Block_irg(block);
if (z == get_tarval_b_true()) {
// Might produce an endless loop, so keep the block.
add_End_keepalive(get_irg_end(irg), block);
n = new_r_Jmp(block);
} else {
n = new_r_Bad(irg, mode_X);
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