From 8799dc30ac472545bc93957c22f070590ff44cb3 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Tue, 7 Feb 2017 22:49:17 -0500 Subject: make rsp and rbp globally live --- live.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'live.c') diff --git a/live.c b/live.c index be5ec8c..18c9b63 100644 --- a/live.c +++ b/live.c @@ -104,13 +104,14 @@ Again: memset(phi, 0, f->ntmp * sizeof phi[0]); memset(nlv, 0, sizeof nlv); + b->out->t[0] |= RGLOB; bscopy(b->in, b->out); for (t=0; bsiter(b->in, &t); t++) { phifix(t, phi, f->tmp); nlv[KBASE(f->tmp[t].cls)]++; } if (rtype(b->jmp.arg) == RCall) { - assert(bscount(b->in) == 0 && nlv[0] == 0 && nlv[1] == 0); + assert(bscount(b->in) == NRGlob && nlv[0] == NRGlob && nlv[1] == 0); b->in->t[0] |= retregs(b->jmp.arg, nlv); } else bset(b->jmp.arg, b, nlv, phi, f->tmp); -- cgit 1.4.1