summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beschedtrivial.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 08:51:18 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 23:03:57 +0200
commite9237e148a4cd289c02e4800f094cd64445fd2fd (patch)
treed4ae90b8437612339897d8edd61a4a789ad379e6 /ir/be/beschedtrivial.c
parent806e4c72b332bd4f184c896decd3395fefeabbf8 (diff)
Add ir_nodeset_first() to return the "first" node in an ir_nodeset.
Diffstat (limited to 'ir/be/beschedtrivial.c')
-rw-r--r--ir/be/beschedtrivial.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ir/be/beschedtrivial.c b/ir/be/beschedtrivial.c
index 6f6b596..6dde79d 100644
--- a/ir/be/beschedtrivial.c
+++ b/ir/be/beschedtrivial.c
@@ -55,10 +55,7 @@ static ir_node *trivial_select(void *block_env, ir_nodeset_t *ready_set)
}
/* at last: schedule branches */
- ir_nodeset_iterator_init(&iter, ready_set);
- irn = ir_nodeset_iterator_next(&iter);
-
- return irn;
+ return ir_nodeset_first(ready_set);
}
static void *trivial_init_graph(ir_graph *irg)