summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyilp_t.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-12-16 23:31:17 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-12-16 23:45:36 +0100
commit50a8c9cc239f96867b9c028cf6ad142454dcfc57 (patch)
tree14476b776a9f57b978f74a58c2761cb8fdfb462e /ir/be/becopyilp_t.h
parent1d59167bbbeefad84d24f1f752c1715502d37e3e (diff)
becopyilp: Remove the unused function co_ilp_get_costs().
Diffstat (limited to 'ir/be/becopyilp_t.h')
-rw-r--r--ir/be/becopyilp_t.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/ir/be/becopyilp_t.h b/ir/be/becopyilp_t.h
index de8925e..4354d45 100644
--- a/ir/be/becopyilp_t.h
+++ b/ir/be/becopyilp_t.h
@@ -39,29 +39,6 @@ static inline bool sr_is_removed(size_red_t const *const sr, ir_node const *cons
return ir_nodeset_contains(&sr->all_removed, irn);
}
-/**
- * TODO: This search is necessary because during the construction of the
- * units (ou's) args could be merged and weights are accumulated.
- * Is this necessary?
- */
-static inline int co_ilp_get_costs(copy_opt_t *co, ir_node *root, ir_node *arg) {
- int i;
-
- /* search optimization unit for phi */
- list_for_each_entry(unit_t, curr, &co->units, units)
- if (curr->nodes[0] == root) {
-
- for (i = 1; i < curr->node_count; ++i)
- if (curr->nodes[i] == arg)
- return curr->costs[i];
-
- assert(0 && "irn must occur in this ou");
- }
-
- assert(0 && "phi must be found in a ou");
- return 0;
-}
-
/******************************************************************************
_____ _ _____ _ _____
/ ____| (_) |_ _| | | __ \