refine assertion in liveness analysis
We were redundantly checking cardinality in a way that prevented fp regs from ever being globally live. We now check that the live regs after a return are exactly the globally live ones.
This commit is contained in:
parent
9a3e131cf7
commit
c9f04db881
1 changed files with 1 additions and 2 deletions
3
live.c
3
live.c
|
@ -74,8 +74,7 @@ Again:
|
|||
nlv[KBASE(f->tmp[t].cls)]++;
|
||||
if (rtype(b->jmp.arg) == RCall) {
|
||||
assert((int)bscount(b->in) == T.nrglob &&
|
||||
nlv[0] == T.nrglob &&
|
||||
nlv[1] == 0);
|
||||
b->in->t[0] == T.rglob);
|
||||
b->in->t[0] |= T.retregs(b->jmp.arg, nlv);
|
||||
} else
|
||||
bset(b->jmp.arg, b, nlv, f->tmp);
|
||||
|
|
Loading…
Add table
Reference in a new issue