summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beuses.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2007-06-17 16:13:20 +0200
committerMatthias Braun <matze@braunis.de>2007-06-17 16:13:20 +0200
commitbb5461e3f6f900c09222814f2eec779684f28f73 (patch)
tree0f2c0e5747e81e76ae3518780d7ad12b8be6751d /ir/be/beuses.c
parent10e8d8749b8740ef7e585698cc254dc2e9fbaae8 (diff)
fixed a bunch of warnings (and some bugs)
[r14557]
Diffstat (limited to 'ir/be/beuses.c')
-rw-r--r--ir/be/beuses.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ir/be/beuses.c b/ir/be/beuses.c
index defe308..82cc71a 100644
--- a/ir/be/beuses.c
+++ b/ir/be/beuses.c
@@ -75,6 +75,8 @@ static int cmp_use(const void *a, const void *b, size_t n)
{
const be_use_t *p = a;
const be_use_t *q = b;
+ (void) n;
+
return !(p->block == q->block && p->node == q->node);
}
@@ -118,7 +120,7 @@ static const be_use_t *get_or_set_use_block(be_uses_t *env,
return result;
}
-static int be_is_phi_argument(const be_lv_t *lv, const ir_node *block, const ir_node *def)
+static int be_is_phi_argument(const ir_node *block, const ir_node *def)
{
ir_node *node;
ir_node *succ_block = NULL;
@@ -255,7 +257,7 @@ static be_next_use_t get_next_use(be_uses_t *env, ir_node *from,
}
#endif
- if(be_is_phi_argument(env->lv, block, def)) {
+ if(be_is_phi_argument(block, def)) {
// TODO we really should continue searching the uses of the phi,
// as a phi isn't a real use that implies a reload (because we could
// easily spill the whole phi)
@@ -354,6 +356,7 @@ void set_sched_step_walker(ir_node *block, void *data)
{
ir_node *node;
unsigned step = 0;
+ (void) data;
sched_foreach(block, node) {
set_irn_link(node, INT_TO_PTR(step));