diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2017-02-06 14:36:27 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2017-02-06 14:36:27 -0500 |
commit | 7e1c1f9f779aa4d55c3cbc9e16a9f8f2884dd3fe (patch) | |
tree | 1956b81f5c2a9eea51d6bbc9a4071d83874dd492 /rega.c | |
parent | 835b2b4910c19ee2a9411da55080be6b1e30a722 (diff) | |
download | roux-7e1c1f9f779aa4d55c3cbc9e16a9f8f2884dd3fe.tar.gz |
use uint for block ids
Diffstat (limited to 'rega.c')
-rw-r--r-- | rega.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rega.c b/rega.c index da4e9e5..fae7538 100644 --- a/rega.c +++ b/rega.c @@ -423,12 +423,12 @@ doblk(Blk *b, RMap *cur) void rega(Fn *fn) { - int j, t, n, r, r1, x, rl[Tmp0]; + int j, t, r, r1, x, rl[Tmp0]; Blk *b, *b1, *s, ***ps, *blist; RMap *end, *beg, cur, old; Ins *i; Phi *p; - uint u; + uint u, n; Ref src, dst; /* 1. setup */ @@ -455,7 +455,7 @@ rega(Fn *fn) } /* 2. assign registers following post-order */ - for (n=fn->nblk-1; n>=0; n--) { + for (n=fn->nblk-1; n!=-1u; n--) { b = fn->rpo[n]; cur.n = 0; bszero(cur.b); |