diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-07-21 19:04:13 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:28 -0400 |
commit | 7f8a6d025ca53e0e1a0621bd7a89a7a6cc5fc754 (patch) | |
tree | c8d267d4d3917bf978be4d88aad5a7d90b906554 /lisc | |
parent | 595ad96a34aaf3d945dc70bab2279e292f3a70b2 (diff) | |
download | roux-7f8a6d025ca53e0e1a0621bd7a89a7a6cc5fc754.tar.gz |
test code for the spiller
Diffstat (limited to 'lisc')
-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; } |