summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beverify.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-28 20:16:27 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-28 23:42:46 +0100
commit40db13dafa724caf3f38f76539cf107cd4c1a376 (patch)
treeefab3a5fb988ec6d383856cc8ac844498ce19562 /ir/be/beverify.c
parent21859ae93493117ea48653347ddc6307be93e16f (diff)
bearch: Add and use be_foreach_value().
This also handles the latent problem, that nobody checks, whether the user of a tuple is actually a Proj and not the End node.
Diffstat (limited to 'ir/be/beverify.c')
-rw-r--r--ir/be/beverify.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/ir/be/beverify.c b/ir/be/beverify.c
index 71f1e20..a31023d 100644
--- a/ir/be/beverify.c
+++ b/ir/be/beverify.c
@@ -760,17 +760,10 @@ static void verify_block_register_allocation(ir_node *block, void *data)
}
sched_foreach_reverse(block, node) {
-
- if (get_irn_mode(node) == mode_T) {
- foreach_out_edge(node, edge) {
- ir_node *def = get_edge_src_irn(edge);
- value_def(def);
- check_output_constraints(def);
- }
- } else {
- value_def(node);
- check_output_constraints(node);
- }
+ be_foreach_value(node, value,
+ value_def(value);
+ check_output_constraints(value);
+ );
check_input_constraints(node);