fix in load elimination (vacall is a call)
This commit is contained in:
parent
a85fe6e2d9
commit
52392caecf
1 changed files with 1 additions and 1 deletions
2
load.c
2
load.c
|
@ -231,7 +231,7 @@ def(Slice sl, bits msk, Blk *b, Ins *i, Loc *il)
|
|||
while (i > b->ins) {
|
||||
--i;
|
||||
if (killsl(i->to, sl)
|
||||
|| (i->op == Ocall && escapes(sl.ref, curf)))
|
||||
|| ((i->op == Ocall || i->op == Ovacall) && escapes(sl.ref, curf)))
|
||||
goto Load;
|
||||
ld = isload(i->op);
|
||||
if (ld) {
|
||||
|
|
Loading…
Add table
Reference in a new issue