qbe

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

commit 7f8a6d025ca53e0e1a0621bd7a89a7a6cc5fc754
parent 595ad96a34aaf3d945dc70bab2279e292f3a70b2
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Tue, 21 Jul 2015 19:04:13 -0400

test code for the spiller

Diffstat:
Mlisc/main.c | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git 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; }