mirror of
git://c9x.me/qbe.git
synced 2026-04-06 18:39:48 +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))
|
if (BGET(v, j))
|
||||||
BCLR(v, j);
|
BCLR(v, j);
|
||||||
else
|
else
|
||||||
v = limit(&v, NReg-1, &w);
|
v = limit(&v, nreg-1, &w);
|
||||||
s = tmp[j].spill;
|
s = tmp[j].spill;
|
||||||
break;
|
break;
|
||||||
case RReg:
|
case RReg:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user