diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 01:00:20 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:33 -0400 |
commit | 8f43615a2140bcdd120e214dbea531f6d22cae09 (patch) | |
tree | 7fbe57085b08b76ade56b9c625c429f04b8cf607 /lisc | |
parent | f7bfa2e435c78917bd6df0c80e7e488751dac58c (diff) | |
download | roux-8f43615a2140bcdd120e214dbea531f6d22cae09.tar.gz |
simplify call handling in spiller
Diffstat (limited to 'lisc')
-rw-r--r-- | lisc/spill.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisc/spill.c b/lisc/spill.c index 7b2476e..115b6fc 100644 --- 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 |