From f184585cd573c8c7e88648769faf988c3bbe8bc1 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Thu, 4 Feb 2016 13:58:23 -0500 Subject: iterate correctly on blocks in spiller... --- lisc/spill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisc/spill.c') diff --git a/lisc/spill.c b/lisc/spill.c index ea89fd9..b12522b 100644 --- a/lisc/spill.c +++ b/lisc/spill.c @@ -362,7 +362,7 @@ spill(Fn *fn) BSET(mask[k], t); } - for (bp=&fn->rpo[fn->nblk-1]; bp!=fn->rpo;) { + for (bp=&fn->rpo[fn->nblk]; bp!=fn->rpo;) { b = *--bp; /* invariant: all bocks with bigger rpo got * their in,out updated. */ -- cgit 1.4.1