diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-08-05 16:08:23 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:30 -0400 |
commit | dba612623fcd5c58569ef8ac32085e8aacaef435 (patch) | |
tree | 287f4bdb0abadb5b6350283d7e609b00a7852c44 /lisc/spill.c | |
parent | d673d8fcd2fd479d8cf0a1f6df99686963be73fb (diff) | |
download | roux-dba612623fcd5c58569ef8ac32085e8aacaef435.tar.gz |
fix limit bug in spill
I think this was not a big issue because the register allocator does not consume a register when it encounters obviously dead code.
Diffstat (limited to 'lisc/spill.c')
-rw-r--r-- | lisc/spill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/spill.c b/lisc/spill.c index c4ca7a8..f963a1b 100644 --- a/lisc/spill.c +++ b/lisc/spill.c @@ -357,7 +357,7 @@ spill(Fn *fn) if (BGET(v, j)) BCLR(v, j); else - v = limit(&v, NReg-1, &w); + v = limit(&v, nreg-1, &w); s = tmp[j].spill; break; case RReg: |