diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-13 11:33:33 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-13 12:39:57 -0400 |
commit | 8992106928756d47697ea26f88b7b5eceacf3845 (patch) | |
tree | f533bef4cf718cd82b9ca6f47180ea6a7366d5ac /ssa.c | |
parent | e9dc0035aec973517649da584d6097c99f6501f5 (diff) | |
download | roux-8992106928756d47697ea26f88b7b5eceacf3845.tar.gz |
do not compute def-use links for regs
Diffstat (limited to 'ssa.c')
-rw-r--r-- | ssa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssa.c b/ssa.c index 04ccc24..298f0ae 100644 --- 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; |