Commit 20992544 authored by Michael Beck's avatar Michael Beck
Browse files

- replaced brain-damaged recursive version of get_cf_op() by iterative one

[r19210]
parent 2dc40ab4
......@@ -565,15 +565,12 @@ void cg_walk(irg_walk_func *pre, irg_walk_func *post, void *env) {
/* Walks back from n until it finds a real cf op. */
static ir_node *get_cf_op(ir_node *n) {
ir_node *pred;
while (!is_cfop(n) && !is_fragile_op(n) && !is_Bad(n)) {
n = skip_Id(n);
n = skip_Tuple(n);
pred = skip_Proj(n);
if (!(is_cfop(pred) || is_fragile_op(pred) || is_Bad(pred)))
n = get_cf_op(n);
return skip_Proj(n);
n = skip_Proj(n);
}
return n;
}
static void irg_block_walk_2(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env)
......
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