3 * File name: ir/ir/firmstat.c
4 * Purpose: Statistics for Firm.
8 * Copyright: (c) 2004 Universität Karlsruhe
9 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
16 #ifdef FIRM_STATISTICS
22 #include "firmstat_t.h"
27 * names of the optimizations
29 static const char *opt_names[] = {
30 "straightening optimization",
32 "algebraic simplification",
34 "Write-After-Write optimization",
35 "Write-After-Read optimization",
36 "Read-After-Write optimization",
39 "Constant evaluation",
44 * need this to be static
46 static ir_op _op_Phi0, _op_PhiM;
48 /* ---------------------------------------------------------------------------------- */
50 #define STAT_ENTER ++status->recursive
51 #define STAT_LEAVE --status->recursive
52 #define STAT_ENTER_SINGLE do { if (status->recursive > 0) return; ++status->recursive; } while (0)
57 static stat_info_t _status, *status = &_status;
60 * compare two elements of the opcode hash
62 static int opcode_cmp(const void *elt, const void *key)
64 const node_entry_t *e1 = elt;
65 const node_entry_t *e2 = key;
67 return e1->op->code - e2->op->code;
71 * compare two elements of the graph hash
73 static int graph_cmp(const void *elt, const void *key)
75 const graph_entry_t *e1 = elt;
76 const graph_entry_t *e2 = key;
78 return e1->irg != e2->irg;
82 * compare two elements of the optimization hash
84 static int opt_cmp(const void *elt, const void *key)
86 const opt_entry_t *e1 = elt;
87 const opt_entry_t *e2 = key;
89 return e1->op->code != e2->op->code;
93 * compare two elements of the block hash
95 static int block_cmp(const void *elt, const void *key)
97 const block_entry_t *e1 = elt;
98 const block_entry_t *e2 = key;
100 return e1->block_nr != e2->block_nr;
104 * compare two elements of the ir_op hash
106 static int opcode_cmp_2(const void *elt, const void *key)
108 const ir_op *e1 = elt;
109 const ir_op *e2 = key;
111 return e1->code != e2->code;
115 * clears all counter in a node_entry_t
117 static void opcode_clear_entry(node_entry_t *elem)
119 cnt_clr(&elem->cnt_alive);
120 cnt_clr(&elem->new_node);
121 cnt_clr(&elem->into_Id);
125 * Returns the associates node_entry_t for an ir_op
127 static node_entry_t *opcode_get_entry(const ir_op *op, pset *set)
134 elem = pset_find(set, &key, op->code);
138 elem = obstack_alloc(&status->cnts, sizeof(*elem));
141 opcode_clear_entry(elem);
145 return pset_insert(set, elem, op->code);
149 * Returns the associates ir_op for an opcode
151 static ir_op *opcode_find_entry(opcode code, pset *set)
156 return pset_find(set, &key, code);
160 * calculates a hash value for an irg
161 * Addresses are typically aligned at 32bit, so we ignore the lowest bits
163 static INLINE unsigned irg_hash(const ir_graph *irg)
165 return (unsigned)irg >> 3;
169 * clears all counter in a graph_entry_t
171 static void graph_clear_entry(graph_entry_t *elem)
173 cnt_clr(&elem->cnt_walked);
174 cnt_clr(&elem->cnt_walked_blocks);
175 cnt_clr(&elem->cnt_was_inlined);
176 cnt_clr(&elem->cnt_got_inlined);
177 cnt_clr(&elem->cnt_strength_red);
178 cnt_clr(&elem->cnt_edges);
182 * Returns the acssociates graph_entry_t for an irg
184 static graph_entry_t *graph_get_entry(ir_graph *irg, pset *set)
192 elem = pset_find(set, &key, irg_hash(irg));
196 elem = obstack_alloc(&status->cnts, sizeof(*elem));
199 graph_clear_entry(elem);
201 /* new hash table for opcodes here */
202 elem->opcode_hash = new_pset(opcode_cmp, 5);
203 elem->block_hash = new_pset(block_cmp, 5);
206 for (i = 0; i < sizeof(elem->opt_hash)/sizeof(elem->opt_hash[0]); ++i)
207 elem->opt_hash[i] = new_pset(opt_cmp, 4);
209 return pset_insert(set, elem, irg_hash(irg));
213 * clears all counter in an opt_entry_t
215 static void opt_clear_entry(opt_entry_t *elem)
217 cnt_clr(&elem->count);
221 * Returns the associates opt_entry_t for an ir_op
223 static opt_entry_t *opt_get_entry(const ir_op *op, pset *set)
230 elem = pset_find(set, &key, op->code);
234 elem = obstack_alloc(&status->cnts, sizeof(*elem));
236 /* clear new counter */
237 opt_clear_entry(elem);
241 return pset_insert(set, elem, op->code);
245 * clears all counter in a block_entry_t
247 static void block_clear_entry(block_entry_t *elem)
249 cnt_clr(&elem->cnt_nodes);
250 cnt_clr(&elem->cnt_edges);
251 cnt_clr(&elem->cnt_in_edges);
252 cnt_clr(&elem->cnt_out_edges);
256 * Returns the associates block_entry_t for an block
258 static block_entry_t *block_get_entry(long block_nr, pset *set)
263 key.block_nr = block_nr;
265 elem = pset_find(set, &key, block_nr);
269 elem = obstack_alloc(&status->cnts, sizeof(*elem));
271 /* clear new counter */
272 block_clear_entry(elem);
274 elem->block_nr = block_nr;
276 return pset_insert(set, elem, block_nr);
281 * Returns the ir_op for an IR-node,
282 * handles special cases and return pseudo op codes
284 static ir_op *stat_get_irn_op(const ir_node *node)
286 ir_op *op = get_irn_op(node);
288 if (op->code == iro_Phi && get_irn_arity(node) == 0) {
289 /* special case, a Phi0 node, count on extra counter */
290 op = status->op_Phi0;
292 else if (op->code == iro_Phi && get_irn_mode(node) == mode_M) {
293 /* special case, a Memory Phi node, count on extra counter */
294 op = status->op_PhiM;
300 * update the block counter
302 static void count_block_info(ir_node *node, graph_entry_t *graph)
304 ir_op *op = get_irn_op(node);
306 block_entry_t *b_entry;
309 /* check for block */
310 if (op == op_Block) {
311 arity = get_irn_arity(node);
312 b_entry = block_get_entry(get_irn_node_nr(node), graph->block_hash);
314 /* count all incoming edges */
315 for (i = 0; i < arity; ++i) {
316 ir_node *pred = get_irn_n(node, i);
317 ir_node *other_block = get_nodes_block(pred);
318 block_entry_t *b_entry_other = block_get_entry(get_irn_node_nr(other_block), graph->block_hash);
320 cnt_inc(&b_entry->cnt_in_edges); /* an edge coming from another block */
321 cnt_inc(&b_entry_other->cnt_out_edges);
325 else if (op == op_Call) {
329 block = get_nodes_block(node);
330 b_entry = block_get_entry(get_irn_node_nr(block), graph->block_hash);
332 /* we have a new nodes */
333 cnt_inc(&b_entry->cnt_nodes);
335 arity = get_irn_arity(node);
337 for (i = 0; i < arity; ++i) {
338 ir_node *pred = get_irn_n(node, i);
339 ir_node *other_block;
341 if (get_irn_op(pred) == op_Block)
344 other_block = get_nodes_block(pred);
346 if (other_block == block)
347 cnt_inc(&b_entry->cnt_edges); /* a in block edge */
349 block_entry_t *b_entry_other = block_get_entry(get_irn_node_nr(other_block), graph->block_hash);
351 cnt_inc(&b_entry->cnt_in_edges); /* an edge coming from another block */
352 cnt_inc(&b_entry_other->cnt_out_edges);
358 * walker for reachable nodes count
360 static void count_nodes(ir_node *node, void *env)
362 graph_entry_t *graph = env;
365 ir_op *op = stat_get_irn_op(node);
366 int arity = get_irn_arity(node);
368 entry = opcode_get_entry(op, graph->opcode_hash);
370 cnt_inc(&entry->cnt_alive);
371 cnt_add_i(&graph->cnt_edges, arity);
373 /* count block edges */
374 count_block_info(node, graph);
378 * count all alive nodes and edges in a graph
380 static void count_nodes_in_graph(graph_entry_t *global, graph_entry_t *graph)
384 /* clear first the alive counter in the graph */
385 for (entry = pset_first(graph->opcode_hash); entry; entry = pset_next(graph->opcode_hash)) {
386 cnt_clr(&entry->cnt_alive);
389 /* count the nodes in the graph */
390 irg_walk_graph(graph->irg, count_nodes, NULL, graph);
392 /* assume we walk every graph only ONCE, we could sum here the global count */
393 for (entry = pset_first(graph->opcode_hash); entry; entry = pset_next(graph->opcode_hash)) {
394 node_entry_t *g_entry = opcode_get_entry(entry->op, global->opcode_hash);
396 /* update the node counter */
397 cnt_add(&g_entry->cnt_alive, &entry->cnt_alive);
400 /* update the edge counter */
401 cnt_add(&global->cnt_edges, &graph->cnt_edges);
407 static void stat_register_dumper(dumper_t *dumper)
409 dumper->next = status->dumper;
410 status->dumper = dumper;
416 static void dump_graph(graph_entry_t *entry)
420 for (dumper = status->dumper; dumper; dumper = dumper->next) {
421 if (dumper->dump_graph)
422 dumper->dump_graph(dumper, entry);
427 * initialise the dumper
429 static void dump_init(const char *name)
433 for (dumper = status->dumper; dumper; dumper = dumper->next) {
435 dumper->init(dumper, name);
442 static void dump_finish(void)
446 for (dumper = status->dumper; dumper; dumper = dumper->next) {
448 dumper->finish(dumper);
452 /* ---------------------------------------------------------------------- */
455 * dumps a opcode hash into human readable form
457 static void simple_dump_opcode_hash(dumper_t *dmp, pset *set)
461 counter_t f_new_node;
465 cnt_clr(&f_new_node);
468 fprintf(dmp->f, "%-16s %-8s %-8s %-8s\n", "Opcode", "alive", "created", "->Id");
469 for (entry = pset_first(set); entry; entry = pset_next(set)) {
470 fprintf(dmp->f, "%-16s %8d %8d %8d\n",
471 get_id_str(entry->op->name), entry->cnt_alive.cnt[0], entry->new_node.cnt[0], entry->into_Id.cnt[0]);
473 cnt_add(&f_alive, &entry->cnt_alive);
474 cnt_add(&f_new_node, &entry->new_node);
475 cnt_add(&f_Id, &entry->into_Id);
477 fprintf(dmp->f, "-------------------------------------------\n");
478 fprintf(dmp->f, "%-16s %8d %8d %8d\n", "Sum",
485 * dumps a optimization hash into human readable form
487 static void simple_dump_opt_hash(dumper_t *dmp, pset *set, int index)
489 opt_entry_t *entry = pset_first(set);
492 fprintf(dmp->f, "\n%s:\n", opt_names[index]);
493 fprintf(dmp->f, "%-16s %-8s\n", "Opcode", "deref");
495 for (; entry; entry = pset_next(set)) {
496 fprintf(dmp->f, "%-16s %8d\n",
497 get_id_str(entry->op->name), entry->count.cnt[0]);
503 * dumps the endges count
505 static void simple_dump_edges(dumper_t *dmp, counter_t *cnt)
507 fprintf(dmp->f, "%-16s %8d\n", "Edges", cnt->cnt[0]);
513 static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry)
516 block_entry_t *b_entry;
519 ir_graph *const_irg = get_const_code_irg();
521 if (entry->irg == const_irg) {
522 fprintf(dmp->f, "\nConst code Irg %p", (void *)entry->irg);
526 fprintf(dmp->f, "\nEntity %s, Irg %p", get_entity_name(entry->ent), (void *)entry->irg);
528 fprintf(dmp->f, "\nIrg %p", (void *)entry->irg);
531 fprintf(dmp->f, " %swalked %d over blocks %d was inlined %d got inlined %d strength red %d:\n",
532 entry->deleted ? "DELETED " : "",
533 entry->cnt_walked.cnt[0], entry->cnt_walked_blocks.cnt[0],
534 entry->cnt_was_inlined.cnt[0],
535 entry->cnt_got_inlined.cnt[0],
536 entry->cnt_strength_red.cnt[0]
540 fprintf(dmp->f, "\nGlobals counts:\n");
541 fprintf(dmp->f, "--------------\n");
545 simple_dump_opcode_hash(dmp, entry->opcode_hash);
546 simple_dump_edges(dmp, &entry->cnt_edges);
548 /* effects of optimizations */
552 for (i = 0; i < sizeof(entry->opt_hash)/sizeof(entry->opt_hash[0]); ++i) {
553 simple_dump_opt_hash(dmp, entry->opt_hash[i], i);
556 /* dump block info */
557 fprintf(dmp->f, "\n%12s %12s %12s %12s %12s %12s\n", "Block Nr", "Nodes", "intern E", "incoming E", "outgoing E", "quot");
558 for (b_entry = pset_first(entry->block_hash);
560 b_entry = pset_next(entry->block_hash)) {
561 fprintf(dmp->f, "BLK %12ld %12u %12u %12u %12u %4.8f\n",
563 b_entry->cnt_nodes.cnt[0],
564 b_entry->cnt_edges.cnt[0],
565 b_entry->cnt_in_edges.cnt[0],
566 b_entry->cnt_out_edges.cnt[0],
567 (double)b_entry->cnt_edges.cnt[0] / (double)b_entry->cnt_nodes.cnt[0]
574 * initialise the simple dumper
576 static void simple_init(dumper_t *dmp, const char *name)
580 snprintf(fname, sizeof(fname), "%s.txt", name);
581 dmp->f = fopen(fname, "w");
585 * finishes the simple dumper
587 static void simple_finish(dumper_t *dmp)
594 * the simple human readable dumper
596 static dumper_t simple_dumper = {
604 /* ---------------------------------------------------------------------- */
607 * count the nodes as needed:
609 * 1 normal (data) Phi's
614 static void csv_count_nodes(graph_entry_t *graph, counter_t cnt[])
619 for (i = 0; i < 4; ++i)
622 for (entry = pset_first(graph->opcode_hash); entry; entry = pset_next(graph->opcode_hash)) {
623 if (entry->op == op_Phi) {
625 cnt_add(&cnt[1], &entry->cnt_alive);
627 else if (entry->op == status->op_PhiM) {
629 cnt_add(&cnt[2], &entry->cnt_alive);
631 else if (entry->op == op_Proj) {
633 cnt_add(&cnt[3], &entry->cnt_alive);
636 /* all other nodes */
637 cnt_add(&cnt[0], &entry->cnt_alive);
645 static void csv_dump_graph(dumper_t *dmp, graph_entry_t *entry)
651 if (entry->irg && !entry->deleted) {
652 ir_graph *const_irg = get_const_code_irg();
654 if (entry->irg == const_irg) {
655 name = "<Const code Irg>";
660 name = get_entity_name(entry->ent);
662 name = "<UNKNOWN IRG>";
665 csv_count_nodes(entry, cnt);
667 fprintf(dmp->f, "%-40s, %p, %d, %d, %d, %d\n",
679 * initialise the simple dumper
681 static void csv_init(dumper_t *dmp, const char *name)
685 snprintf(fname, sizeof(fname), "%s.csv", name);
686 dmp->f = fopen(fname, "a");
690 * finishes the simple dumper
692 static void csv_finish(dumper_t *dmp)
699 * the simple human readable dumper
701 static dumper_t csv_dumper = {
710 /* ---------------------------------------------------------------------- */
713 * helper: get an ir_op from an opcode
715 ir_op *stat_get_op_from_opcode(opcode code)
717 return opcode_find_entry(code, status->ir_op_hash);
720 /* initialize the statistics module. */
721 void init_stat(unsigned enable_options)
723 #define X(a) a, sizeof(a)-1
727 /* enable statistics */
728 status->enable = enable_options & FIRMSTAT_ENABLED;
730 if (! status->enable)
733 obstack_init(&status->cnts);
735 /* build the pseudo-ops */
736 _op_Phi0.code = --pseudo_id;
737 _op_Phi0.name = new_id_from_chars(X("Phi0"));
739 _op_PhiM.code = --pseudo_id;
740 _op_PhiM.name = new_id_from_chars(X("PhiM"));
742 /* create the hash-tables */
743 status->irg_hash = new_pset(graph_cmp, 8);
744 status->ir_op_hash = new_pset(opcode_cmp_2, 1);
746 status->op_Phi0 = &_op_Phi0;
747 status->op_PhiM = &_op_PhiM;
749 stat_register_dumper(&simple_dumper);
750 stat_register_dumper(&csv_dumper);
752 /* initialize the pattern hash */
753 stat_init_pattern_history(enable_options & FIRMSTAT_PATTERN_ENABLED);
757 /* A new IR op is registered. */
758 void stat_new_ir_op(const ir_op *op)
760 if (! status->enable)
765 graph_entry_t *graph = graph_get_entry(NULL, status->irg_hash);
767 /* execute for side effect :-) */
768 opcode_get_entry(op, graph->opcode_hash);
770 pset_insert(status->ir_op_hash, op, op->code);
775 /* An IR op is freed. */
776 void stat_free_ir_op(const ir_op *op)
778 if (! status->enable)
787 /* A new node is created. */
788 void stat_new_node(const ir_node *node)
790 if (! status->enable)
793 /* do NOT count during dead node elimination */
794 if (status->in_dead_node_elim > 0)
800 graph_entry_t *graph;
801 ir_op *op = stat_get_irn_op(node);
803 /* increase global value */
804 graph = graph_get_entry(NULL, status->irg_hash);
805 entry = opcode_get_entry(op, graph->opcode_hash);
806 cnt_inc(&entry->new_node);
808 /* increase local value */
809 graph = graph_get_entry(current_ir_graph, status->irg_hash);
810 entry = opcode_get_entry(op, graph->opcode_hash);
811 cnt_inc(&entry->new_node);
816 /* A node is changed into a Id node */
817 void stat_turn_into_id(const ir_node *node)
819 if (! status->enable)
825 graph_entry_t *graph;
826 ir_op *op = stat_get_irn_op(node);
828 /* increase global value */
829 graph = graph_get_entry(NULL, status->irg_hash);
830 entry = opcode_get_entry(op, graph->opcode_hash);
831 cnt_inc(&entry->into_Id);
833 /* increase local value */
834 graph = graph_get_entry(current_ir_graph, status->irg_hash);
835 entry = opcode_get_entry(op, graph->opcode_hash);
836 cnt_inc(&entry->into_Id);
841 /* A new graph was created */
842 void stat_new_graph(ir_graph *irg, entity *ent)
844 if (! status->enable)
849 /* execute for side effect :-) */
850 graph_entry_t * graph = graph_get_entry(irg, status->irg_hash);
859 * A graph was deleted
861 void stat_free_graph(ir_graph *irg)
863 if (! status->enable)
868 graph_entry_t *graph = graph_get_entry(irg, status->irg_hash);
869 graph_entry_t *global = graph_get_entry(NULL, status->irg_hash);
873 /* count the nodes of the graph yet, it will be destroyed later */
874 count_nodes_in_graph(global, graph);
876 /* count the DAG's */
877 // count_dags_in_graph(global, graph);
879 /* calculate the pattern */
880 stat_calc_pattern_history(irg);
886 * A walk over a graph is initiated. Do not count walks from statistic code.
888 void stat_irg_walk(ir_graph *irg, void *pre, void *post)
890 if (! status->enable)
895 graph_entry_t *graph = graph_get_entry(irg, status->irg_hash);
897 cnt_inc(&graph->cnt_walked);
903 * A walk over a graph in block-wise order is initiated. Do not count walks from statistic code.
905 void stat_irg_walk_blkwise(ir_graph *irg, void *pre, void *post)
907 /* for now, do NOT differentiate between blockwise and normal */
908 stat_irg_walk(irg, pre, post);
912 * A walk over the graph's blocks is initiated. Do not count walks from statistic code.
914 void stat_irg_block_walk(ir_graph *irg, const ir_node *node, void *pre, void *post)
916 if (! status->enable)
921 graph_entry_t *graph = graph_get_entry(irg, status->irg_hash);
923 cnt_inc(&graph->cnt_walked_blocks);
929 * called for every node that is removed due to an optimization
931 static void removed_due_opt(ir_node *n, pset *set)
933 ir_op *op = get_irn_op(n);
934 opt_entry_t *entry = opt_get_entry(op, set);
936 /* increase global value */
937 cnt_inc(&entry->count);
941 * Some nodes were optimized into some others due to an optimization
943 void stat_merge_nodes(
944 ir_node **new_node_array, int new_num_entries,
945 ir_node **old_node_array, int old_num_entries,
948 if (! status->enable)
954 graph_entry_t *graph = graph_get_entry(current_ir_graph, status->irg_hash);
956 for (i = 0; i < old_num_entries; ++i) {
957 for (j = 0; j < new_num_entries; ++j)
958 if (old_node_array[i] == new_node_array[j])
961 /* nodes might be in new and old, these are NOT removed */
962 if (j >= new_num_entries) {
963 removed_due_opt(old_node_array[i], graph->opt_hash[opt]);
971 * A node was lowered into other nodes
973 void stat_lower(ir_node *node)
975 if (! status->enable)
980 graph_entry_t *graph = graph_get_entry(current_ir_graph, status->irg_hash);
982 removed_due_opt(node, graph->opt_hash[STAT_LOWERED]);
988 * A graph was inlined
990 void stat_inline(ir_node *call, ir_graph *called_irg)
992 if (! status->enable)
997 ir_graph *irg = get_irn_irg(call);
998 graph_entry_t *i_graph = graph_get_entry(called_irg, status->irg_hash);
999 graph_entry_t *graph = graph_get_entry(irg, status->irg_hash);
1001 cnt_inc(&graph->cnt_got_inlined);
1002 cnt_inc(&i_graph->cnt_was_inlined);
1008 * A graph with tail-recursions was optimized.
1010 void stat_tail_rec(ir_graph *irg)
1012 if (! status->enable)
1022 * Strength reduction was performed on an iteration variable.
1024 void stat_strength_red(ir_graph *irg, ir_node *strong, ir_node *cmp)
1026 if (! status->enable)
1031 graph_entry_t *graph = graph_get_entry(irg, status->irg_hash);
1032 cnt_inc(&graph->cnt_strength_red);
1038 * Start the dead node elimination.
1040 void stat_dead_node_elim_start(ir_graph *irg)
1042 if (! status->enable)
1045 ++status->in_dead_node_elim;
1049 * Stops the dead node elimination.
1051 void stat_dead_node_elim_stop(ir_graph *irg)
1053 if (! status->enable)
1056 --status->in_dead_node_elim;
1059 /* Finish the statistics */
1060 void stat_finish(const char *name)
1062 if (! status->enable)
1067 graph_entry_t *entry;
1068 graph_entry_t *global = graph_get_entry(NULL, status->irg_hash);
1072 /* dump per graph */
1073 for (entry = pset_first(status->irg_hash); entry; entry = pset_next(status->irg_hash)) {
1075 if (entry->irg == NULL) {
1076 /* special entry for the global count */
1080 if (! entry->deleted) {
1081 /* the graph is still alive, count the nodes on it */
1082 count_nodes_in_graph(global, entry);
1084 /* count the DAG's */
1085 // count_dags_in_graph(global, entry);
1087 /* calculate the pattern */
1088 stat_calc_pattern_history(entry->irg);
1093 /* clear the counter here:
1094 * we need only the edge counter to be cleared, all others are cumulative
1096 cnt_clr(&entry->cnt_edges);
1100 // dump_graph(global);
1103 stat_finish_pattern_history();
1105 /* clear the global counter here */
1107 node_entry_t *entry;
1109 for (entry = pset_first(global->opcode_hash); entry; entry = pset_next(global->opcode_hash)) {
1110 opcode_clear_entry(entry);
1112 graph_clear_entry(global);
1116 // status->enable = 0;
1123 /* need this for prototypes */
1124 #define FIRM_STATISTICS
1125 #include "firmstat.h"
1127 void init_stat(unsigned enable_options) {}
1129 void stat_finish(const char *name) {}
1131 void stat_new_ir_op(const ir_op *op) {}
1133 void stat_free_ir_op(const ir_op *op) {}
1135 void stat_new_node(const ir_node *node) {}
1137 void stat_turn_into_id(const ir_node *node) {}
1139 void stat_new_graph(ir_graph *irg, entity *ent) {}
1141 void stat_free_graph(ir_graph *irg) {}
1143 void stat_irg_walk(ir_graph *irg, void *pre, void *post) {}
1145 void stat_irg_block_walk(ir_graph *irg, const ir_node *node, void *pre, void *post) {}
1147 void stat_merge_nodes(
1148 ir_node **new_node_array, int new_num_entries,
1149 ir_node **old_node_array, int old_num_entries,
1150 stat_opt_kind opt) {}
1152 void stat_lower(ir_node *node) {}
1154 void stat_inline(ir_node *call, ir_graph *irg) {}
1156 void stat_tail_rec(ir_graph *irg) {}
1158 void stat_strength_red(ir_graph *irg, ir_node *strong, ir_node *cmp) {}
1160 void stat_dead_node_elim_start(ir_graph *irg) {}
1162 void stat_dead_node_elim_stop(ir_graph *irg) {}