From 90c136835984a2e62ad999d3998cfa6cdbb3f112 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 3 Mar 2006 17:14:55 +0000 Subject: [PATCH] used new is_*() functions [r7405] --- ir/opt/tailrec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ir/opt/tailrec.c b/ir/opt/tailrec.c index 9e305d435..ca7e917d1 100644 --- a/ir/opt/tailrec.c +++ b/ir/opt/tailrec.c @@ -280,7 +280,7 @@ static int check_lifetime_of_locals(ir_graph *irg) for (i = get_irn_n_outs(irg_frame) - 1; i >= 0; --i) { ir_node *succ = get_irn_out(irg_frame, i); - if (get_irn_op(succ) == op_Sel && is_address_taken(succ)) + if (is_Sel(succ) && is_address_taken(succ)) return 0; } return 1; @@ -318,13 +318,13 @@ int opt_tail_rec_irg(ir_graph *irg) int j; ir_node **ress; - /* search all returns of a block */ - if (get_irn_op(ret) != op_Return) + /* search all Returns of a block */ + if (! is_Return(ret)) continue; /* check, if it's a Return self() */ call = skip_Proj(get_Return_mem(ret)); - if (get_irn_op(call) != op_Call) + if (! is_Call(call)) continue; /* check if it's a recursive call */ -- 2.20.1