Commit 9639e890 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

add exchange_cdep()

[r7797]
parent 46de9c58
......@@ -18,6 +18,14 @@ cdep* find_cdep(const ir_node* block)
}
void exchange_cdep(ir_node* old, const ir_node* new)
{
cdep* cdep = find_cdep(new);
pmap_insert(cdep_map, old, cdep);
}
static void add_cdep(ir_node* node, ir_node* dep_on)
{
cdep* dep = find_cdep(node);
......
......@@ -14,6 +14,8 @@ void free_cdep(ir_graph*);
cdep* find_cdep(const ir_node* block);
void exchange_cdep(ir_node* old, const ir_node* new);
int is_cdep_on(const ir_node* dependee, const ir_node* candidate);
int is_iterated_cdep_on(ir_node* dependee, ir_node* candidate);
......
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