Commit 49dda300 authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

Let normalize_n_returns cope with Bads

Fixes opt/fehler204 again.
parent 55a7a1f4
......@@ -262,6 +262,8 @@ void normalize_n_returns(ir_graph *irg)
for (n_finals = n_rets = i = 0; i < n; ++i) {
ir_node *ret = get_Block_cfgpred(endbl, i);
if (is_Bad(ret)) continue;
if (is_Return(ret) && can_move_ret(ret)) {
* Ok, all conditions met, we can move this Return, put it
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