summary refs log tree commit diff
path: root/lisc/spill.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-04 13:58:23 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-04 13:58:23 -0500
commitf184585cd573c8c7e88648769faf988c3bbe8bc1 (patch)
treeef45b8889139f5e31a2193f24db6034baacd7506 /lisc/spill.c
parent134cfc45415bfaf95c68a70e3619b5bd220bde1b (diff)
downloadroux-f184585cd573c8c7e88648769faf988c3bbe8bc1.tar.gz
iterate correctly on blocks in spiller...
Diffstat (limited to 'lisc/spill.c')
-rw-r--r--lisc/spill.c2
1 files changed, 1 insertions, 1 deletions
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. */