From e4d5e7f8702f17f69488b16776984026e2cd9464 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 26 May 2004 13:04:06 +0000 Subject: [PATCH] statistic function hooks added [r2946] --- ir/ir/irgwalk.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ir/ir/irgwalk.c b/ir/ir/irgwalk.c index 73d472343..91096d0dc 100644 --- a/ir/ir/irgwalk.c +++ b/ir/ir/irgwalk.c @@ -28,6 +28,7 @@ # include "irprog.h" # include "irgwalk.h" # include "typewalk.h" +# include "firmstat.h" # include "eset.h" # include "array.h" @@ -174,6 +175,8 @@ void irg_walk(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void *env) void irg_walk_graph(ir_graph *irg, irg_walk_func *pre, irg_walk_func *post, void *env) { ir_graph * rem = current_ir_graph; + + stat_irg_walk(irg, (void *)pre, (void *)post); current_ir_graph = irg; irg_walk(get_irg_end(irg), pre, post, env); current_ir_graph = rem; @@ -357,6 +360,8 @@ void irg_block_walk(ir_node *node, irg_walk_func *pre, irg_walk_func *post, void ir_node *block, *pred; int i; + stat_irg_block_walk(current_ir_graph, node, (void *)pre, (void *)post); + assert(node); assert(!interprocedural_view); /* interprocedural_view not implemented, because it * interleaves with irg_walk */ -- 2.20.1