summaryrefslogtreecommitdiffhomepage
path: root/ir/stat
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-22 08:31:43 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-22 18:48:23 +0200
commit8a8016af18242e97e6c5f748a30ccccaba367cd6 (patch)
tree0977a75cf515612dd3555e493da806501529ebb1 /ir/stat
parente6a836412efd54cb8a2d667040bbe18e444fa06e (diff)
stat: Remove the unused if-conversion statistics.
They are remnants from the first if-conversion implementation.
Diffstat (limited to 'ir/stat')
-rw-r--r--ir/stat/firmstat.c23
-rw-r--r--ir/stat/firmstat_t.h3
-rw-r--r--ir/stat/stat_dmp.c15
3 files changed, 1 insertions, 40 deletions
diff --git a/ir/stat/firmstat.c b/ir/stat/firmstat.c
index 2c6b050..bff14e9 100644
--- a/ir/stat/firmstat.c
+++ b/ir/stat/firmstat.c
@@ -1751,28 +1751,6 @@ static void stat_dead_node_elim(void *ctx, ir_graph *irg, int start)
}
/**
- * Hook: if-conversion was tried.
- */
-static void stat_if_conversion(void *context, ir_graph *irg, ir_node *phi,
- int pos, ir_node *mux, if_result_t reason)
-{
- (void) context;
- (void) phi;
- (void) pos;
- (void) mux;
- if (! status->stat_options)
- return;
-
- STAT_ENTER;
- {
- graph_entry_t *graph = graph_get_entry(irg, status->irg_hash);
-
- cnt_inc(&graph->cnt[gcnt_if_conv + reason]);
- }
- STAT_LEAVE;
-}
-
-/**
* Hook: real function call was optimized.
*/
static void stat_func_call(void *context, ir_graph *irg, ir_node *call)
@@ -2096,7 +2074,6 @@ void firm_init_stat(void)
HOOK(hook_tail_rec, stat_tail_rec);
HOOK(hook_strength_red, stat_strength_red);
HOOK(hook_dead_node_elim, stat_dead_node_elim);
- HOOK(hook_if_conversion, stat_if_conversion);
HOOK(hook_func_call, stat_func_call);
HOOK(hook_arch_dep_replace_mul_with_shifts, stat_arch_dep_replace_mul_with_shifts);
HOOK(hook_arch_dep_replace_division_by_const, stat_arch_dep_replace_division_by_const);
diff --git a/ir/stat/firmstat_t.h b/ir/stat/firmstat_t.h
index b8a65c5..3055051 100644
--- a/ir/stat/firmstat_t.h
+++ b/ir/stat/firmstat_t.h
@@ -246,10 +246,9 @@ enum graph_counter_names {
gcnt_param_adr, /**< number of parameter load/store addresses. */
gcnt_this_adr, /**< number of this load/store addresses. */
gcnt_other_adr, /**< number of other load/store addresses. */
- gcnt_if_conv, /**< number of if conversions */
/* --- must be the last enum constant --- */
- _gcnt_last = gcnt_if_conv + IF_RESULT_LAST /**< number of counters */
+ _gcnt_last = gcnt_other_adr /**< number of counters */
};
/**
diff --git a/ir/stat/stat_dmp.c b/ir/stat/stat_dmp.c
index a2c358d..f6513de 100644
--- a/ir/stat/stat_dmp.c
+++ b/ir/stat/stat_dmp.c
@@ -149,15 +149,6 @@ static const struct {
{ (hook_opt_kind)FS_OPT_RTS_MEMCMP, "RTS optimization: call to memcmp() replaced" },
};
-static const char *if_conv_names[IF_RESULT_LAST] = {
- "if conv done ",
- "if conv side effect ",
- "if conv Phi node found ",
- "if conv to deep DAG's ",
- "if conv bad control flow ",
- "if conv denied by arch ",
-};
-
/**
* dumps a opcode hash into human readable form
*/
@@ -435,8 +426,6 @@ static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry)
if (entry->irg) {
ir_graph *const_irg = get_const_code_irg();
- int i;
-
if (entry->irg == const_irg) {
fprintf(dmp->f, "\nConst code Irg %p", (void *)entry->irg);
} else {
@@ -472,10 +461,6 @@ static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry)
cnt_to_uint(&entry->cnt[gcnt_indirect_calls]),
cnt_to_uint(&entry->cnt[gcnt_external_calls])
);
-
- for (i = 0; i < IF_RESULT_LAST; ++i) {
- fprintf(dmp->f, " %s : %u\n", if_conv_names[i], cnt_to_uint(&entry->cnt[gcnt_if_conv + i]));
- }
} else {
fprintf(dmp->f, "\nGlobals counts:\n");
fprintf(dmp->f, "--------------\n");