summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bepbqpcoloring.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/bepbqpcoloring.c
parent3aeb68ad2fefc380a05eccba1a8105ddbbd4ab21 (diff)
Let foreach_out_edge_kind() and foreach_out_edge_kind_safe() declare their iterator variables.
Diffstat (limited to 'ir/be/bepbqpcoloring.c')
-rw-r--r--ir/be/bepbqpcoloring.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ir/be/bepbqpcoloring.c b/ir/be/bepbqpcoloring.c
index bfb819c..a8e671f 100644
--- a/ir/be/bepbqpcoloring.c
+++ b/ir/be/bepbqpcoloring.c
@@ -345,7 +345,6 @@ static void create_pbqp_coloring_instance(ir_node *block, void *data)
ir_nodeset_iterator_t iter;
if (get_irn_mode(irn) == mode_T) {
- const ir_edge_t *edge;
foreach_out_edge(irn, edge) {
ir_node *proj = get_edge_src_irn(edge);
if (!arch_irn_consider_in_reg_alloc(cls, proj))
@@ -410,7 +409,6 @@ static void create_pbqp_coloring_instance(ir_node *block, void *data)
bipartite_t *bp = bipartite_new(cls->n_regs, cls->n_regs);
/* add all proj after a perm to clique */
- const ir_edge_t *edge;
foreach_out_edge(irn, edge) {
ir_node *proj = get_edge_src_irn(edge);
@@ -510,9 +508,7 @@ static void create_pbqp_coloring_instance(ir_node *block, void *data)
#else
/* order nodes for perfect elimination order */
if (get_irn_mode(irn) == mode_T) {
- bool allHaveIFEdges = true;
- const ir_edge_t *edge;
-
+ bool allHaveIFEdges = true;
foreach_out_edge(irn, edge) {
ir_node *proj = get_edge_src_irn(edge);
if (!arch_irn_consider_in_reg_alloc(cls, proj))