Commit 1404cf39 authored by Matthias Braun's avatar Matthias Braun
Browse files

rmeove pointless be_clear_links() function

parent 9beeb71e
......@@ -36,6 +36,7 @@
#include "irgwalk.h"
#include "irnode_t.h"
#include "irdump.h"
#include "irtools.h"
#include "util.h"
#include "obst.h"
#include "raw_bitset.h"
......@@ -1777,7 +1778,7 @@ static void be_pref_alloc_cls(void)
DB((dbg, LEVEL_2, "=== Allocating registers of %s ===\n", cls->name));
be_clear_links(irg);
irg_walk_graph(irg, firm_clear_link, NULL, NULL);
irg_block_walk_graph(irg, NULL, analyze_block, NULL);
combine_congruence_classes();
......
......@@ -21,6 +21,7 @@
#include "array.h"
#include "irprintf.h"
#include "irtools.h"
//#define NORMAL_DBG
......@@ -322,7 +323,7 @@ static void normal_sched_block(ir_node *block, void *env)
static void *normal_init_graph(ir_graph *irg)
{
be_clear_links(irg);
irg_walk_graph(irg, firm_clear_link, NULL, NULL);
instance_t *inst = XMALLOC(instance_t);
obstack_init(&inst->obst);
......
......@@ -842,7 +842,7 @@ static void be_spill_belady(ir_graph *irg, const arch_register_class_t *rcls)
stat_ev_tim_pop("belady_time_backedges");
stat_ev_tim_push();
be_clear_links(irg);
irg_walk_graph(irg, firm_clear_link, NULL, NULL);
stat_ev_tim_pop("belady_time_clear_links");
ir_reserve_resources(irg, IR_RESOURCE_IRN_LINK);
......
......@@ -22,11 +22,6 @@
#include "besched.h"
#include "bearch.h"
void be_clear_links(ir_graph *irg)
{
irg_walk_graph(irg, firm_clear_link, NULL, NULL);
}
/**
* Gets the Proj with number pn from irn.
*/
......
......@@ -32,12 +32,6 @@ static inline const ir_node *get_block_const(const ir_node *irn)
return is_Block(irn) ? irn : get_nodes_block(irn);
}
/**
* Clears the link fields of all nodes of the given graph.
* @param irg The graph.
*/
void be_clear_links(ir_graph *irg);
/**
* Gets the Proj with number pn from irn.
*/
......
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