summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bearch.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2013-01-05 13:14:57 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2013-01-05 13:35:17 +0100
commit2061cd930f3ef5377a2ac218c64b273f17b4ef85 (patch)
tree78228f0ddc41a75f91d3424f057037e3a6d942c8 /ir/be/bearch.c
parent13481c7e48c495df469f4185bc2c688b7c54f80a (diff)
be: Dump register assignments at the inputs of nodes.
Diffstat (limited to 'ir/be/bearch.c')
-rw-r--r--ir/be/bearch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ir/be/bearch.c b/ir/be/bearch.c
index e1a6930..9443492 100644
--- a/ir/be/bearch.c
+++ b/ir/be/bearch.c
@@ -233,7 +233,9 @@ void arch_dump_reqs_and_registers(FILE *F, const ir_node *node)
const arch_register_req_t *req = arch_get_irn_register_req_in(node, i);
fprintf(F, "inreq #%d = ", i);
arch_dump_register_req(F, req, node);
- fputs("\n", F);
+ ir_node *const op = get_irn_n(node, i);
+ arch_register_t const *const reg = be_get_info(skip_Proj_const(op))->out_infos ? arch_get_irn_register(op) : NULL;
+ fprintf(F, " [%s]\n", reg ? reg->name : "n/a");
}
be_foreach_out(node, o) {
const arch_register_req_t *req = arch_get_irn_register_req_out(node, o);