X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyheur.c;h=519f521bde42af87a812b9b61cc70cebb344a7b4;hb=9513d386057c564d792fa1a94212af552ca91996;hp=c58aabe57b9fdfd211d351b65c3e24dbb32a6c32;hpb=8a5ac70896b18a522fa39aad29b3c7cf36d5941e;p=libfirm diff --git a/ir/be/becopyheur.c b/ir/be/becopyheur.c index c58aabe57..519f521bd 100644 --- a/ir/be/becopyheur.c +++ b/ir/be/becopyheur.c @@ -126,7 +126,7 @@ static inline void qnode_add_conflict(const qnode_t *qn, const ir_node *n1, cons c.n1 = n2; c.n2 = n1; } - set_insert(conflict_t, qn->conflicts, &c, sizeof(c), HASH_CONFLICT(c)); + (void)set_insert(conflict_t, qn->conflicts, &c, sizeof(c), HASH_CONFLICT(c)); } /** @@ -399,7 +399,6 @@ static inline void qnode_max_ind_set(qnode_t *qn, const unit_t *ou) ir_node **safe, **unsafe; int i, o, safe_count, safe_costs, unsafe_count, *unsafe_costs; bitset_t *curr, *best; - size_t pos; int next, curr_weight, best_weight = 0; /* assign the nodes into two groups. @@ -550,13 +549,12 @@ static inline void ou_insert_qnode(unit_t *ou, qnode_t *qn) */ static void ou_optimize(unit_t *ou) { - qnode_t *curr = NULL; - qnode_t *tmp; - const arch_register_req_t *req; - bitset_t const* allocatable_regs; - unsigned n_regs; - unsigned idx; - int i; + qnode_t *curr = NULL; + const arch_register_req_t *req; + bitset_t const* allocatable_regs; + unsigned n_regs; + unsigned idx; + int i; DBG((dbg, LEVEL_1, "\tOptimizing unit:\n")); for (i=0; inode_count; ++i) @@ -641,8 +639,6 @@ static void ou_optimize(unit_t *ou) */ int co_solve_heuristic(copy_opt_t *co) { - unit_t *curr; - ASSERT_OU_AVAIL(co); pinned_global = pset_new_ptr(SLOTS_PINNED_GLOBAL);