Commit 35e11f1f authored by Matthias Braun's avatar Matthias Braun
Browse files

make verifier a bit less strict for out-edges to dead code

parent 3e2d483d
......@@ -785,6 +785,11 @@ static void value_def(ir_node *node)
reg_node = registers[reg->index];
/* a little cheat, since its so hard to remove all outedges to dead code
* in the backend. This particular case should never be a problem. */
if (reg_node == NULL && get_irn_n_edges(node) == 0)
if (reg_node != node) {
ir_fprintf(stderr, "Verify warning: Node %+F not registered as value for Register %s (but %+F) in block %+F(%s)\n",
node, reg->name, reg_node, get_nodes_block(node), get_irg_dump_name(irg));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment