summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2007-06-08 19:26:45 +0200
committerMatthias Braun <matze@braunis.de>2007-06-08 19:26:45 +0200
commit3add958b47889246d303a36aee29ff1642e247ec (patch)
treeac03f0c132de2472322cf431408e54557321ffa6 /ir/be/beutil.c
parent2d7210947b4cf5973a8100c652f3c9fcecef4c40 (diff)
remove unnecessary function
[r14382]
Diffstat (limited to 'ir/be/beutil.c')
-rw-r--r--ir/be/beutil.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/ir/be/beutil.c b/ir/be/beutil.c
index 8b66eef..d0498dd 100644
--- a/ir/be/beutil.c
+++ b/ir/be/beutil.c
@@ -234,26 +234,6 @@ void be_kill_node(ir_node *irn) {
edges_node_deleted(irn, irg);
}
-/* FIXME: not used. can be deleted? */
-ir_node *dom_up_search(pset *accept, ir_node *start_point_exclusive) {
- ir_node *irn, *idom;
-
- /* search the current block */
- for (irn=sched_prev(start_point_exclusive); irn; irn=sched_prev(irn))
- if (pset_find_ptr(accept, irn))
- return irn;
-
- /* FIXME: This is obviously buggy: after the first recursive call idom is a block
- and get_nodes_block will fail.
- Moreover, why not a simple iteration instead of recursion */
- idom = get_Block_idom(get_nodes_block(start_point_exclusive));
-
- if (idom)
- return dom_up_search(accept, idom); /* continue search in idom-block */
- else
- return NULL; /* this was the start block and we did not find an acceptable irn */
-}
-
/**
* Gets the Proj with number pn from irn.
*/