summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespilldaemel.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 09:35:51 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 23:03:57 +0200
commit5619c9122551713adbefc33977572639408dd8b9 (patch)
treed2733b5f8b468ee8e05bea8191c1406efb41a865 /ir/be/bespilldaemel.c
parent3aeb68ad2fefc380a05eccba1a8105ddbbd4ab21 (diff)
Let foreach_out_edge_kind() and foreach_out_edge_kind_safe() declare their iterator variables.
Diffstat (limited to 'ir/be/bespilldaemel.c')
-rw-r--r--ir/be/bespilldaemel.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ir/be/bespilldaemel.c b/ir/be/bespilldaemel.c
index 4f058bf..f2e0c51 100644
--- a/ir/be/bespilldaemel.c
+++ b/ir/be/bespilldaemel.c
@@ -77,10 +77,8 @@ static int compare_spill_candidates_desc(const void *d1, const void *d2)
static double get_spill_costs(ir_node *node)
{
- const ir_edge_t *edge;
- ir_node *spill_place = skip_Proj(node);
- double costs = be_get_spill_costs(spill_env, node,
- spill_place);
+ ir_node *spill_place = skip_Proj(node);
+ double costs = be_get_spill_costs(spill_env, node, spill_place);
foreach_out_edge(node, edge) {
ir_node *use = get_edge_src_irn(edge);
@@ -108,8 +106,6 @@ static double get_spill_costs(ir_node *node)
*/
static void spill_node(ir_node *node)
{
- const ir_edge_t *edge;
-
DBG((dbg, LEVEL_3, "\tspilling %+F\n", node));
foreach_out_edge(node, edge) {