summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beprefalloc.c
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2013-03-08 13:04:53 +0100
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2013-03-11 09:28:08 +0100
commitdbaf58e5008527678302096cfc2c95b94ba0ee2c (patch)
tree776516dc4cd2b9b37d2c6c32819b94873506d9eb /ir/be/beprefalloc.c
parent4ce5894dadca0ef8d6f49508235d49f3cf5c06af (diff)
Fixed warnings in optimize build.
Diffstat (limited to 'ir/be/beprefalloc.c')
-rw-r--r--ir/be/beprefalloc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ir/be/beprefalloc.c b/ir/be/beprefalloc.c
index e2665f5..2d91ad3 100644
--- a/ir/be/beprefalloc.c
+++ b/ir/be/beprefalloc.c
@@ -696,7 +696,7 @@ static void assign_reg(ir_node const *const block, ir_node *const node, arch_reg
unsigned num = reg_prefs[r].num;
if (!rbitset_is_set(normal_regs, num))
continue;
- const arch_register_t *reg = arch_register_for_index(cls, num);
+ DEBUG_ONLY(const arch_register_t *reg = arch_register_for_index(cls, num);)
DB((dbg, LEVEL_2, " %s(%f)", reg->name, reg_prefs[r].pref));
}
DB((dbg, LEVEL_2, "\n"));
@@ -1225,7 +1225,8 @@ static void enforce_constraints(ir_nodeset_t *live_nodes, ir_node *node,
hungarian_prepare_cost_matrix(bp, HUNGARIAN_MODE_MAXIMIZE_UTIL);
unsigned *assignment = ALLOCAN(unsigned, n_regs);
- int res = hungarian_solve(bp, assignment, NULL, 0);
+ int res = hungarian_solve(bp, assignment, NULL, 0);
+ (void)res;
assert(res == 0);
hungarian_free(bp);
@@ -1446,6 +1447,7 @@ static void assign_phi_registers(ir_node *block)
unsigned *assignment = ALLOCAN(unsigned, n_regs);
int res = hungarian_solve(bp, assignment, NULL, 0);
+ (void)res;
assert(res == 0);
/* apply results */