path: root/ir/be/beinfo.c
diff options
authorChristoph Mallon <>2016-04-26 06:56:08 +0200
committerChristoph Mallon <>2016-04-26 07:56:17 +0200
commitd0a9700ef62439b23f1fd67031547ddd797870ab (patch)
tree2b9354462a21cff52a3954d3c154c6d135554a19 /ir/be/beinfo.c
parent763ba23e178651a12d8b1cc181bd7712234c598b (diff)
be: Automatically set the original node name during code selection.
Now the original node name is set for all backends, not just ia32. Further, no code in the backends is needed. All new nodes, which are reachable from the returned transformed node and do not have a original node yet, automatically get assigned the original node.
Diffstat (limited to 'ir/be/beinfo.c')
1 files changed, 7 insertions, 0 deletions
diff --git a/ir/be/beinfo.c b/ir/be/beinfo.c
index fb373fa..9c9a53c 100644
--- a/ir/be/beinfo.c
+++ b/ir/be/beinfo.c
@@ -142,6 +142,13 @@ static void dump_backend_info_hook(void *context, FILE *F, const ir_node *node)
if (lv->sets_valid)
be_dump_liveness_block(lv, F, node);
+#ifndef NDEBUG
+ if (!is_Proj(node)) {
+ char const *const orig = be_get_info(node)->orig_node;
+ fprintf(F, "orig node = %s\n", orig ? orig : "n/a");
+ }
void be_info_init(void)