From 11a3f35d9a69ef4d60263154bcc9ea19eb8228f9 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 3 Mar 2006 16:51:59 +0000 Subject: [PATCH] used new is_Sel(), is_Call() [r7391] --- ir/ana/cgana.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ir/ana/cgana.c b/ir/ana/cgana.c index f04010249..2f014e0ff 100644 --- a/ir/ana/cgana.c +++ b/ir/ana/cgana.c @@ -177,7 +177,7 @@ static void sel_methods_walker(ir_node * node, void *env) { entity **arr; /* Call standard optimizations */ - if (get_irn_op(node) == op_Sel) { + if (is_Sel(node)) { ir_node *new_node = optimize_in_place(node); if (node != new_node) exchange(node, new_node); @@ -281,7 +281,7 @@ static entity ** get_Sel_arr(ir_node * sel) { entity * ent; entity ** arr; - assert(sel && get_irn_op(sel) == op_Sel); + assert(is_Sel(sel)); ent = get_Sel_entity(sel); ent = get_inherited_methods_implementation(ent); @@ -709,7 +709,7 @@ static void callee_ana_node(ir_node * node, eset * methods) { /* */ static void callee_walker(ir_node * call, void * env) { - if (get_irn_op(call) == op_Call) { + if (is_Call(call)) { eset * methods = eset_create(); entity * ent; entity ** arr = NEW_ARR_F(entity *, 0); @@ -797,7 +797,7 @@ static void sel_methods_dispose(void) { /*--------------------------------------------------------------------------*/ static void destruct_walker(ir_node * node, void * env) { - if (get_irn_op(node) == op_Call) { + if (is_Call(node)) { remove_Call_callee_arr(node); } } -- 2.20.1