commit a3650701d1f87100b6ab41cb120f7923eb851a33
parent 90138539bce046fa8746c326841d2fc7e4e8c20d
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Thu, 4 Feb 2016 12:22:20 -0500
fix super old bug in rega!
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisc/rega.c b/lisc/rega.c
@@ -285,7 +285,7 @@ dopm(Blk *b, Ins *i, RMap *m)
} while (i != b->ins && regcpy(i-1));
assert(m0.n <= m->n);
if (i != b->ins && (i-1)->op == OCall) {
- def = calldef(*i, 0);
+ def = calldef(*(i-1), 0);
for (r=0; r<NRSave; r++)
if (!(BIT(rsave[r]) & def))
move(rsave[r], R, m);