qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 56fc8bfe5cc882683ffc9a87a01591c7fdc72e71
parent b871c261a1d998f663085577bc2810b4df4724c8
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Wed, 23 Dec 2015 16:53:30 -0500

purify test logic in liveness

Diffstat:
Mlisc/live.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisc/live.c b/lisc/live.c @@ -114,9 +114,8 @@ Again: for (k=0; k<2; k++) b->nlive[k] = nlv[k]; for (i=&b->ins[b->nins]; i!=b->ins;) { - if ((--i)->op == OCall) - ; - if (rtype(i->arg[1]) == RACall) { + if ((--i)->op == OCall + && rtype(i->arg[1]) == RACall) { b->in.t[0] &= ~calldef(*i, m); for (k=0; k<2; k++) nlv[k] -= m[k];