From: Götz Lindenmaier Date: Tue, 18 Jan 2005 18:29:57 +0000 (+0000) Subject: added field for execution freqency X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c4d39b9d359a41f741c9178f0a4dc46f32ae5176;p=libfirm added field for execution freqency [r4946] --- diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 9f4c06c7c..ec9ad95b8 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -211,6 +211,8 @@ new_r_ir_graph (entity *ent, int n_loc) first_block = new_immBlock(); add_immBlock_pred (first_block, projX); + res->method_execution_frequency = -1; + return res; } diff --git a/ir/ir/irgraph_t.h b/ir/ir/irgraph_t.h index 7739f07b0..f6ddaf8ea 100644 --- a/ir/ir/irgraph_t.h +++ b/ir/ir/irgraph_t.h @@ -102,8 +102,10 @@ struct ir_graph { unsigned char *caller_isbe; /**< For callgraph analysis: set if backedge. */ ir_graph **callees; /**< For callgraph analysis. */ unsigned char *callee_isbe; /**< For callgraph analysis: set if backedge. */ - int callgraph_loop_depth; - int callgraph_recursion_depth; + int callgraph_loop_depth; /**< For callgraph analysis */ + int callgraph_recursion_depth; /**< For callgraph analysis */ + double method_execution_frequency; /**< For callgraph analysis */ + ir_loop *l; /* -- Fields for Walking the graph -- */