test code for the spiller
This commit is contained in:
parent
595ad96a34
commit
7f8a6d025c
1 changed files with 17 additions and 0 deletions
17
lisc/main.c
17
lisc/main.c
|
@ -70,6 +70,23 @@ main(int ac, char *av[])
|
||||||
pr = 0;
|
pr = 0;
|
||||||
break;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue