X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Ffirmstat.c;h=3dffface236529ac45b9be41c10b2b17357e449f;hb=289f417b740633fd4caab706441b6e47bb8d19d1;hp=bf7c7e920286a8cf08bb4fa27aa743bd0971f749;hpb=ce6161a7e42a48f7422b7babcc64d8ace18e2687;p=libfirm diff --git a/ir/stat/firmstat.c b/ir/stat/firmstat.c index bf7c7e920..3dffface2 100644 --- a/ir/stat/firmstat.c +++ b/ir/stat/firmstat.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2010 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -65,12 +65,6 @@ static ir_op _op_DivC; /** The Div by Const node. */ static ir_op _op_ModC; -/** The Div by Const node. */ -static ir_op _op_DivModC; - -/** The Quot by Const node. */ -static ir_op _op_QuotC; - /** The memory Proj node. */ static ir_op _op_ProjM; @@ -593,18 +587,6 @@ static ir_op *stat_get_irn_op(ir_node *node) op = status->op_ModC ? status->op_ModC : op; } /* if */ break; - case iro_DivMod: - if (is_Const(get_DivMod_right(node))) { - /* special case, a division/modulo by a const, count on extra counter */ - op = status->op_DivModC ? status->op_DivModC : op; - } /* if */ - break; - case iro_Quot: - if (is_Const(get_Quot_right(node))) { - /* special case, a floating point division by a const, count on extra counter */ - op = status->op_QuotC ? status->op_QuotC : op; - } /* if */ - break; case iro_Sel: if (is_Sel(get_Sel_ptr(node))) { /* special case, a Sel of a Sel, count on extra counter */ @@ -937,10 +919,7 @@ static void stat_update_address(ir_node *node, graph_entry_t *graph) case iro_Sel: base = find_base_adr(node); irg = current_ir_graph; - if (base == get_irg_tls(irg)) { - /* a TLS variable, like a global. */ - cnt_inc(&graph->cnt[gcnt_global_adr]); - } else if (base == get_irg_frame(irg)) { + if (base == get_irg_frame(irg)) { /* a local Variable. */ cnt_inc(&graph->cnt[gcnt_local_adr]); } else { @@ -1113,8 +1092,6 @@ static ir_mode *get_irn_op_mode(ir_node *node) return get_Load_mode(node); case iro_Store: return get_irn_mode(get_Store_value(node)); - case iro_DivMod: - return get_irn_mode(get_DivMod_left(node)); case iro_Div: return get_irn_mode(get_Div_left(node)); case iro_Mod: @@ -2134,7 +2111,7 @@ void stat_dump_snapshot(const char *name, const char *phase) { char fname[2048]; const char *p; - int l; + size_t l; if (! status->stat_options) return; @@ -2386,20 +2363,12 @@ void firm_init_stat(unsigned enable_options) _op_ModC.code = --num; _op_ModC.name = new_id_from_chars(X("ModC")); - _op_DivModC.code = --num; - _op_DivModC.name = new_id_from_chars(X("DivModC")); - - _op_QuotC.code = --num; - _op_QuotC.name = new_id_from_chars(X("QuotC")); - status->op_Phi0 = &_op_Phi0; status->op_PhiM = &_op_PhiM; status->op_ProjM = &_op_ProjM; status->op_MulC = &_op_MulC; status->op_DivC = &_op_DivC; status->op_ModC = &_op_ModC; - status->op_DivModC = &_op_DivModC; - status->op_QuotC = &_op_QuotC; } else { status->op_Phi0 = NULL; status->op_PhiM = NULL; @@ -2407,8 +2376,6 @@ void firm_init_stat(unsigned enable_options) status->op_MulC = NULL; status->op_DivC = NULL; status->op_ModC = NULL; - status->op_DivModC = NULL; - status->op_QuotC = NULL; } /* if */ /* for Florian: count the Sel depth */