From 2a4fbbc6e0d3728aab7f1573f0c035f55aa33d77 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 22 Jul 2015 06:33:10 -0400 Subject: move some debug output out of main --- lisc/spill.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lisc/spill.c') 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; nntmp; n++) + fprintf(stderr, "\t%-10s %d\n", + fn->sym[n].name, + fn->sym[n].cost); + fprintf(stderr, "\n"); + } } int -- cgit 1.4.1