From af272c86b682b345f2cc3d0ad28caae8872c2486 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 3 Mar 2006 16:52:39 +0000 Subject: [PATCH] used new is_Call() and is_Sel() [r7392] --- ir/ana/field_temperature.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/ir/ana/field_temperature.c b/ir/ana/field_temperature.c index fc147cd7d..c179f07ac 100644 --- a/ir/ana/field_temperature.c +++ b/ir/ana/field_temperature.c @@ -319,19 +319,18 @@ double get_entity_estimated_n_dyncalls(entity *ent) { ir_node *acc = get_entity_access(ent, i); /* Call->Sel(ent) combination */ - if ((get_irn_op(acc) == op_Call) && - (get_irn_op(get_Call_ptr(acc)) == op_Sel)) { + if (is_Call(acc) && is_Sel(get_Call_ptr(acc))) { n_calls += get_irn_final_cost(acc); /* MemOp->Sel combination for static, overwritten entities */ - } else if (is_memop(acc) && (get_irn_op(get_memop_ptr(acc)) == op_Sel)) { + } else if (is_memop(acc) && is_Sel(get_memop_ptr(acc))) { entity *ent = get_Sel_entity(get_memop_ptr(acc)); if (is_Class_type(get_entity_owner(ent))) { - /* We might call this for inner entities in compounds. */ - if (get_entity_n_overwrites(ent) > 0 || - get_entity_n_overwrittenby(ent) > 0) { - n_calls += get_irn_final_cost(acc); - } + /* We might call this for inner entities in compounds. */ + if (get_entity_n_overwrites(ent) > 0 || + get_entity_n_overwrittenby(ent) > 0) { + n_calls += get_irn_final_cost(acc); + } } } -- 2.20.1