diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-07-22 06:33:10 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:29 -0400 |
commit | 2a4fbbc6e0d3728aab7f1573f0c035f55aa33d77 (patch) | |
tree | 377fe871130bb29a38a12c33c7491355878677fd /lisc/spill.c | |
parent | 7202c7dedfcd274130cd15549e620a9b8513ef3f (diff) | |
download | roux-2a4fbbc6e0d3728aab7f1573f0c035f55aa33d77.tar.gz |
move some debug output out of main
Diffstat (limited to 'lisc/spill.c')
-rw-r--r-- | lisc/spill.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisc/spill.c b/lisc/spill.c index 26b1c5a..ce40075 100644 --- a/lisc/spill.c +++ b/lisc/spill.c @@ -111,6 +111,14 @@ fillcost(Fn *fn) } symuse(b->jmp.arg, 1, n, fn); } + if (debug['S']) { + fprintf(stderr, "> Spill costs:\n"); + for (n=Tmp0; n<fn->ntmp; n++) + fprintf(stderr, "\t%-10s %d\n", + fn->sym[n].name, + fn->sym[n].cost); + fprintf(stderr, "\n"); + } } int |