qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit f184585cd573c8c7e88648769faf988c3bbe8bc1
parent 134cfc45415bfaf95c68a70e3619b5bd220bde1b
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Thu,  4 Feb 2016 13:58:23 -0500

iterate correctly on blocks in spiller...

Diffstat:
Mlisc/spill.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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. */