mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
this is a buggy shortcut!
This commit is contained in:
parent
0aa9e83211
commit
a670758b87
@ -386,9 +386,10 @@ spill(Fn *fn)
|
||||
j = opdesc[i->op].nmem;
|
||||
j -= rtype(i->arg[0]) == RAMem;
|
||||
j -= rtype(i->arg[1]) == RAMem;
|
||||
for (m=0; t=i->arg[m].val, m<2; m++)
|
||||
for (m=0; m<2; m++)
|
||||
switch (rtype(i->arg[m])) {
|
||||
case RAMem:
|
||||
t = i->arg[m].val;
|
||||
ma = &fn->mem[t & AMask];
|
||||
if (rtype(ma->base) == RTmp) {
|
||||
BSET(v, ma->base.val);
|
||||
@ -400,6 +401,7 @@ spill(Fn *fn)
|
||||
}
|
||||
break;
|
||||
case RTmp:
|
||||
t = i->arg[m].val;
|
||||
lvarg[m] = BGET(v, t);
|
||||
BSET(v, t);
|
||||
if (j-- <= 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user