Commit 7cfefaae authored by Michael Beck's avatar Michael Beck
Browse files

call optimize_cf() to delete dead-code that might arise after cond_eval

[r19906]
parent b6bbfaeb
......@@ -696,14 +696,19 @@ void opt_cond_eval(ir_graph* irg)
changed |= rerun;
} while (rerun);
clear_using_irn_visited(irg);
clear_using_irn_link(irg);
if (changed) {
/* control flow changed, some blocks may become dead */
set_irg_outs_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
/* Dead code might be created. Optimize it away as it is dangerous
* to call optimize_df() an dead code. */
optimize_cf(irg);
}
clear_using_irn_visited(irg);
clear_using_irn_link(irg);
}
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