mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
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.
This commit is contained in:
parent
d673d8fcd2
commit
dba612623f
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user