aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir
diff options
context:
space:
mode:
Diffstat (limited to 'ir')
-rw-r--r--ir/optmem.c2
-rw-r--r--ir/regalloc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ir/optmem.c b/ir/optmem.c
index 35544b2..f9ad245 100644
--- a/ir/optmem.c
+++ b/ir/optmem.c
@@ -228,7 +228,7 @@ mem2reg(struct function *fn)
FREQUIRE(FNUSE);
- if (fn->nblk <= 64 * countof(bsbuf[0])) {
+ if (fn->nblk <= BSNBIT * countof(bsbuf[0])) {
sb.sealed = bsbuf[0];
sb.marked = bsbuf[1];
memset(bsbuf[0], 0, BSSIZE(fn->nblk) * sizeof *bsbuf[0]);
diff --git a/ir/regalloc.c b/ir/regalloc.c
index 29d9f88..691793e 100644
--- a/ir/regalloc.c
+++ b/ir/regalloc.c
@@ -194,7 +194,7 @@ allocstk(struct rega *ra)
for (int i = 0; i < BSSIZE(MAXSPILL); ++i) {
if (ra->freestk[i].u != 0) {
- s = i*64 + lowestsetbit(ra->freestk[i].u);
+ s = i*BSNBIT + lowestsetbit(ra->freestk[i].u);
break;
}
}