mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
fix in load elimination (vacall is a call)
This commit is contained in:
parent
a85fe6e2d9
commit
52392caecf
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) {
|
while (i > b->ins) {
|
||||||
--i;
|
--i;
|
||||||
if (killsl(i->to, sl)
|
if (killsl(i->to, sl)
|
||||||
|| (i->op == Ocall && escapes(sl.ref, curf)))
|
|| ((i->op == Ocall || i->op == Ovacall) && escapes(sl.ref, curf)))
|
||||||
goto Load;
|
goto Load;
|
||||||
ld = isload(i->op);
|
ld = isload(i->op);
|
||||||
if (ld) {
|
if (ld) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user