qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 4f9a5df76be7f900d4d8f25ade69478e03ec623c
parent 7f8a6d025ca53e0e1a0621bd7a89a7a6cc5fc754
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Tue, 21 Jul 2015 19:19:24 -0400

more testing code

Diffstat:
Mlisc/main.c | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/lisc/main.c b/lisc/main.c @@ -71,16 +71,22 @@ main(int ac, char *av[]) break; } case 's': { + int t; Blk *b; fprintf(stderr, "[Testing Spilling]\n"); fillrpo(fn); filllive(fn); fillcost(fn); + fprintf(stderr, "> Spill costs:\n"); + for (t=Tmp0; t<fn->ntmp; t++) + fprintf(stderr, "\t%s: %d\n", + fn->sym[t].name, + fn->sym[t].cost); spill(fn); + fprintf(stderr, "\n> In registers at exits:\n"); for (b=fn->start; b; b=b->link) { - printf("> In regs after block %s: [", - b->name); + printf("\t%s: [", b->name); dumprset(&b->out, fn); printf(" ]\n"); }