Commit e7ab7148 authored by yb9976's avatar yb9976
Browse files

Removed unused functions.

parent 841a7fe4
......@@ -365,14 +365,6 @@ static inline void set_cg_irg_visited(ir_graph *irg, ir_visited_t i)
irg->self_visited = i;
}
/**
* Returns the visited flag of a graph.
*/
static inline ir_visited_t get_cg_irg_visited(const ir_graph *irg)
{
return irg->self_visited;
}
static inline void mark_irg_in_stack(ir_graph *irg)
{
scc_info *info = (scc_info*) get_irg_link(irg);
......
......@@ -117,30 +117,6 @@ void be_quit_copystat(void)
}
}
/**
* @return 1 if the block at pos @p pos removed a critical edge
* 0 else
*/
static inline int was_edge_critical(const ir_node *bl, int pos)
{
const ir_edge_t *edge;
const ir_node *bl_at_pos, *bl_before;
/* Does bl have several predecessors ?*/
if (get_Block_n_cfgpreds(bl) <= 1)
return 0;
/* Does the pred have exactly one predecessor */
bl_at_pos = get_irn_n(bl, pos);
if (get_irn_arity(bl_at_pos) != 1)
return 0;
/* Does the pred of the pred have several successors */
bl_before = get_irn_n(bl_at_pos, 0);
edge = get_block_succ_first(bl_before);
return get_block_succ_next(bl_before, edge) ? 1 : 0;
}
void copystat_add_max_costs(int costs)
{
curr_vals[I_COPIES_MAX] += costs;
......
......@@ -55,13 +55,6 @@ static inline usage_stats_t *get_or_set_usage_stats(reg_pressure_selector_env_t
return us;
}
static inline usage_stats_t *get_usage_stats(ir_node *irn)
{
usage_stats_t *us = (usage_stats_t*)get_irn_link(irn);
assert(us && "This node must have usage stats");
return us;
}
static int max_hops_walker(reg_pressure_selector_env_t *env, ir_node *irn, ir_node *curr_bl, int depth, unsigned visited_nr)
{
ir_node *bl = get_nodes_block(irn);
......
......@@ -1096,30 +1096,6 @@ void ia32_peephole_optimization(ir_graph *irg)
be_peephole_opt(irg);
}
/**
* Removes node from schedule if it is not used anymore. If irn is a mode_T node
* all its Projs are removed as well.
* @param irn The irn to be removed from schedule
*/
static inline void try_kill(ir_node *node)
{
if (get_irn_mode(node) == mode_T) {
foreach_out_edge_safe(node, edge) {
ir_node *proj = get_edge_src_irn(edge);
try_kill(proj);
}
}
if (get_irn_n_edges(node) != 0)
return;
if (sched_is_scheduled(node)) {
sched_remove(node);
}
kill_node(node);
}
static void optimize_conv_store(ir_node *node)
{
ir_node *pred;
......
......@@ -21,13 +21,6 @@
/** An obstack used for temporary space */
static struct obstack mangle_obst;
/** returned a mangled type name, currently no mangling */
static inline ident *mangle_type(const ir_type *tp)
{
assert(tp->kind == k_type);
return tp->name;
}
static void obstack_grow_ident(struct obstack *obst, ident *id)
{
const char *c = get_id_str(id);
......
Supports Markdown
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