bearch: Also dump the slot index of should_be_same and must_be_different constraints.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 27 Nov 2012 22:36:41 +0000 (23:36 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 27 Nov 2012 22:36:41 +0000 (23:36 +0100)
ir/be/bearch.c

index 0d669a1..b60ed0a 100644 (file)
@@ -226,7 +226,7 @@ static void arch_dump_register_req(FILE *F, const arch_register_req_t *req,
                fprintf(F, " same as");
                for (i = 0; 1U << i <= other; ++i) {
                        if (other & (1U << i)) {
-                               ir_fprintf(F, " %+F", get_irn_n(skip_Proj_const(node), i));
+                               ir_fprintf(F, " #%d (%+F)", i, get_irn_n(skip_Proj_const(node), i));
                        }
                }
        }
@@ -238,7 +238,7 @@ static void arch_dump_register_req(FILE *F, const arch_register_req_t *req,
                fprintf(F, " different from");
                for (i = 0; 1U << i <= other; ++i) {
                        if (other & (1U << i)) {
-                               ir_fprintf(F, " %+F", get_irn_n(skip_Proj_const(node), i));
+                               ir_fprintf(F, " #%d (%+F)", i, get_irn_n(skip_Proj_const(node), i));
                        }
                }
        }