summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespilldaemel.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-28 12:55:17 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-28 12:55:17 +0100
commit7e447b3efcd7b0e79c6746da340416206331d18d (patch)
treeb02dd25912f8e7239c5ecd8de5dd515657cd6e8b /ir/be/bespilldaemel.c
parente882b686518c16d814ee7c317f59b686b1cb5d08 (diff)
bearch: Make the register requirements an output parameter of be_foreach_definition().
Diffstat (limited to 'ir/be/bespilldaemel.c')
-rw-r--r--ir/be/bespilldaemel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ir/be/bespilldaemel.c b/ir/be/bespilldaemel.c
index 88cf06a..a38cdd3 100644
--- a/ir/be/bespilldaemel.c
+++ b/ir/be/bespilldaemel.c
@@ -140,10 +140,10 @@ static unsigned get_value_width(const ir_node *node)
static void do_spilling(ir_nodeset_t *live_nodes, ir_node *node)
{
size_t values_defined = 0;
- be_foreach_definition(node, cls, value,
+ be_foreach_definition(node, cls, value, req,
(void)value;
- assert(req_->width >= 1);
- values_defined += req_->width;
+ assert(req->width >= 1);
+ values_defined += req->width;
);
/* we need registers for the non-live argument values */
@@ -225,7 +225,7 @@ static void remove_defs(ir_node *node, ir_nodeset_t *nodeset)
/* You must break out of your loop when hitting the first phi function. */
assert(!is_Phi(node));
- be_foreach_definition(node, cls, value,
+ be_foreach_definition(node, cls, value, req,
ir_nodeset_remove(nodeset, value);
);
}