qbe

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

commit 8992106928756d47697ea26f88b7b5eceacf3845
parent e9dc0035aec973517649da584d6097c99f6501f5
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Wed, 13 Apr 2016 11:33:33 -0400

do not compute def-use links for regs

Diffstat:
Mssa.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ssa.c b/ssa.c @@ -8,6 +8,8 @@ adduse(Tmp *tmp, int ty, Blk *b, ...) int n; va_list ap; + if (!tmp->use) + return; va_start(ap, b); n = tmp->nuse; vgrow(&tmp->use, ++tmp->nuse); @@ -44,7 +46,7 @@ filluse(Fn *fn) /* todo, is this the correct file? */ tmp = fn->tmp; - for (t=0; t<fn->ntmp; t++) { + for (t=Tmp0; t<fn->ntmp; t++) { tmp[t].ndef = 0; tmp[t].nuse = 0; tmp[t].phi = 0;