summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beverify.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-27 17:09:49 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-27 17:09:49 +0100
commit7f697a04ed97496a78897468d857acbaffe90ff3 (patch)
treea81d0a5656b8fa5a50fd8f25b53baf38fd5cb987 /ir/be/beverify.c
parentb9391dcc75fa2d4a5b99ab9644bd3da9eaff2bcf (diff)
beverify: Simply use the register, which we already have, instead of fetching it again via its global index.
Diffstat (limited to 'ir/be/beverify.c')
-rw-r--r--ir/be/beverify.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ir/be/beverify.c b/ir/be/beverify.c
index dcda129..fc8e3c4 100644
--- a/ir/be/beverify.c
+++ b/ir/be/beverify.c
@@ -704,9 +704,8 @@ static void value_used(const ir_node *block, const ir_node *node)
for (unsigned i = 0; i < req->width; ++i) {
const ir_node *reg_node = registers[idx+i];
if (reg_node != NULL && reg_node != node) {
- const arch_register_t *realreg = &arch_env->registers[idx+i];
ir_fprintf(stderr, "Verify warning: Register %s assigned more than once in block %+F(%s) (nodes %+F %+F)\n",
- realreg->name, block, get_irg_name(irg),
+ reg->name, block, get_irg_name(irg),
node, reg_node);
problem_found = true;
}
@@ -733,9 +732,8 @@ static void value_def(const ir_node *node)
return;
if (reg_node != node) {
- const arch_register_t *realreg = &arch_env->registers[idx+i];
ir_fprintf(stderr, "Verify warning: Node %+F not registered as value for Register %s (but %+F) in block %+F(%s)\n",
- node, realreg->name, reg_node, get_nodes_block(node),
+ node, reg->name, reg_node, get_nodes_block(node),
get_irg_name(irg));
problem_found = true;
}