commit 8f43615a2140bcdd120e214dbea531f6d22cae09
parent f7bfa2e435c78917bd6df0c80e7e488751dac58c
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Tue, 15 Sep 2015 01:00:20 -0400
simplify call handling in spiller
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lisc/spill.c b/lisc/spill.c
@@ -277,7 +277,6 @@ inregs(Blk *b, Blk *s) /* todo, move to live.c */
static Ins *
dopm(Blk *b, Ins *i, Bits *v)
{
- int j;
Ins *i1;
/* consecutive moves from
@@ -295,9 +294,8 @@ dopm(Blk *b, Ins *i, Bits *v)
break;
}
if (i > b->ins && (i-1)->op == OCall) {
- calldef(*--i, &j);
- limit(v, NReg - NRSave + j, 0);
v->t[0] &= ~calldef(*i, 0);
+ limit(v, NReg - NRSave, 0);
v->t[0] |= calluse(*i, 0);
setloc(&i->arg[0], v, &(Bits){{0}});
} else