qbe

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

commit dba612623fcd5c58569ef8ac32085e8aacaef435
parent d673d8fcd2fd479d8cf0a1f6df99686963be73fb
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Wed,  5 Aug 2015 16:08:23 -0400

fix limit bug in spill

I think this was not a big issue because the register
allocator does not consume a register when it encounters
obviously dead code.

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

diff --git a/lisc/spill.c b/lisc/spill.c @@ -357,7 +357,7 @@ spill(Fn *fn) if (BGET(v, j)) BCLR(v, j); else - v = limit(&v, NReg-1, &w); + v = limit(&v, nreg-1, &w); s = tmp[j].spill; break; case RReg: