use cmp $0, it works with spill slots
This commit is contained in:
parent
df358ad6d2
commit
1477dffe32
2 changed files with 5 additions and 3 deletions
|
@ -334,6 +334,7 @@ spill(Fn *fn)
|
|||
assert(bcnt(&v) <= nreg);
|
||||
|
||||
/* 2. process the block instructions */
|
||||
#if 0
|
||||
if (rtype(b->jmp.arg) == RTmp) {
|
||||
j = b->jmp.arg.val;
|
||||
if (!BGET(v, j) && l==nreg) {
|
||||
|
@ -342,6 +343,7 @@ spill(Fn *fn)
|
|||
}
|
||||
BSET(v, j);
|
||||
}
|
||||
#endif
|
||||
curi = &insb[NIns];
|
||||
for (i=&b->ins[b->nins]; i!=b->ins;) {
|
||||
assert(bcnt(&v) <= nreg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue