Commit 66620acf authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ir_graph: Remove unused callgraph analysis info.

parent 7b8e47ec
......@@ -79,14 +79,6 @@ FIRM_API int has_irg_callee_backedge(const ir_graph *irg);
/** Returns the maximal loop depth of call nodes that call along this edge. */
FIRM_API size_t get_irg_callee_loop_depth(const ir_graph *irg, size_t pos);
/** Returns the maximal loop depth of all paths from an external visible method to
this irg. */
FIRM_API size_t get_irg_loop_depth(const ir_graph *irg);
/** Returns the maximal recursion depth of all paths from an external visible method to
this irg. */
FIRM_API size_t get_irg_recursion_depth(const ir_graph *irg);
/** Returns the method execution frequency of a graph. */
FIRM_API double get_irg_method_execution_frequency(const ir_graph *irg);
......
......@@ -459,7 +459,6 @@ static inline void pop_scc_to_loop(ir_graph *irg)
set_irg_dfn(m, loop_node_cnt);
add_loop_irg(current_loop, m);
m->l = current_loop;
//m->callgraph_loop_depth = current_loop->depth;
} while (m != irg);
}
......@@ -522,8 +521,6 @@ static void init_scc(struct obstack *obst)
foreach_irp_irg(i, irg) {
set_irg_link(irg, new_scc_info(obst));
irg->callgraph_recursion_depth = 0;
irg->callgraph_loop_depth = 0;
}
}
......@@ -814,19 +811,6 @@ void find_callgraph_recursions(void)
irp->callgraph_state = irp_callgraph_and_calltree_consistent;
}
size_t get_irg_loop_depth(const ir_graph *irg)
{
assert(irp->callgraph_state == irp_callgraph_consistent ||
irp->callgraph_state == irp_callgraph_and_calltree_consistent);
return irg->callgraph_loop_depth;
}
size_t get_irg_recursion_depth(const ir_graph *irg)
{
assert(irp->callgraph_state == irp_callgraph_and_calltree_consistent);
return irg->callgraph_recursion_depth;
}
void analyse_loop_nesting_depth(void)
{
/* establish preconditions. */
......
......@@ -164,8 +164,6 @@ static ir_graph *new_r_ir_graph(ir_entity *ent, int n_loc)
first_block = new_r_Block(res, 1, &projX);
set_r_cur_block(res, first_block);
res->method_execution_frequency = -1.0;
return res;
}
......
......@@ -539,9 +539,6 @@ struct ir_graph {
cg_callee_entry **callees; /**< Callgraph: list of callee calls */
unsigned *callee_isbe; /**< Callgraph: bitset if backedge info calculated. */
ir_loop *l; /**< For callgraph analysis. */
size_t callgraph_loop_depth;
size_t callgraph_recursion_depth;
double method_execution_frequency;
#ifdef DEBUG_libfirm
/** Unique graph number for each graph to make output readable. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment