From c4d39b9d359a41f741c9178f0a4dc46f32ae5176 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Tue, 18 Jan 2005 18:29:57 +0000 Subject: [PATCH] added field for execution freqency [r4946] --- ir/ir/irgraph.c | 2 ++ ir/ir/irgraph_t.h | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- */ -- 2.20.1