added field for execution freqency
authorGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Tue, 18 Jan 2005 18:29:57 +0000 (18:29 +0000)
committerGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Tue, 18 Jan 2005 18:29:57 +0000 (18:29 +0000)
[r4946]

ir/ir/irgraph.c
ir/ir/irgraph_t.h

index 9f4c06c..ec9ad95 100644 (file)
@@ -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;
 }
 
index 7739f07..f6ddaf8 100644 (file)
@@ -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 -- */