Commit eba55161 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Do not warn about wrong register for a Phi input if that register is a joker...

Do not warn about wrong register for a Phi input if that register is a joker (i.e. the infamous unknown register).

[r21764]
parent 3f807bf4
......@@ -762,7 +762,7 @@ static void check_register_constraints(ir_node *node)
ir_node *pred = get_Phi_pred(node, i);
const arch_register_t *pred_reg = arch_get_irn_register(arch_env, pred);
if (reg != pred_reg) {
if (reg != pred_reg && !arch_register_type_is(pred_reg, joker)) {
ir_fprintf(stderr, "Verify warning: Input %d of %+F in block %+F(%s) uses register %s instead of %s\n",
i, node, get_nodes_block(node), get_irg_dump_name(irg), pred_reg->name, reg->name);
problem_found = 1;
......
Supports Markdown
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