diff options
Diffstat (limited to 'lisc/main.c')
-rw-r--r-- | lisc/main.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lisc/main.c b/lisc/main.c index c0c147b..98a486a 100644 --- a/lisc/main.c +++ b/lisc/main.c @@ -70,6 +70,23 @@ main(int ac, char *av[]) pr = 0; break; } + case 's': { + Blk *b; + + fprintf(stderr, "[Testing Spilling]\n"); + fillrpo(fn); + filllive(fn); + fillcost(fn); + spill(fn); + for (b=fn->start; b; b=b->link) { + printf("> In regs after block %s: [", + b->name); + dumprset(&b->out, fn); + printf(" ]\n"); + } + pr = 0; + break; + } default: break; } |