X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Ffirmstat.c;h=03a4badf8021399f218798ccea75bc204c6a8ed0;hb=6522e38f03a92510c47b7d690a284545086f1f55;hp=5335d02e18016645f3652edcc15cdbbb10028b1f;hpb=31fc92ec27c0274f5f24c515094afd40a04ab1a9;p=libfirm diff --git a/ir/stat/firmstat.c b/ir/stat/firmstat.c index 5335d02e1..03a4badf8 100644 --- a/ir/stat/firmstat.c +++ b/ir/stat/firmstat.c @@ -25,8 +25,6 @@ */ #include "config.h" -#ifdef FIRM_STATISTICS - #include #include #include @@ -919,10 +917,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 { @@ -1434,7 +1429,7 @@ void stat_register_dumper_func(dump_graph_FUNC func) /* * Helper: get an ir_op from an opcode. */ -ir_op *stat_get_op_from_opcode(ir_opcode code) +ir_op *stat_get_op_from_opcode(unsigned code) { return opcode_find_entry(code, status->ir_op_hash); } /* stat_get_op_from_opcode */ @@ -2455,16 +2450,3 @@ int stat_is_active(void) { return status != (stat_info_t *)&status_disable; } /* stat_is_active */ - -#else - -/* initialize the statistics module. */ -void firm_init_stat(unsigned enable_options) {} - -/* Dumps a statistics snapshot */ -void stat_dump_snapshot(const char *name, const char *phase) {} - -/* terminates the statistics module, frees all memory */ -void stat_term(void); - -#endif /* FIRM_STATISTICS */