diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-02-04 12:22:20 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-02-04 12:22:20 -0500 |
commit | a3650701d1f87100b6ab41cb120f7923eb851a33 (patch) | |
tree | 1c3d9ebab6f6ddb2f1a7a9dc0b22ab3861807d34 | |
parent | 90138539bce046fa8746c326841d2fc7e4e8c20d (diff) | |
download | roux-a3650701d1f87100b6ab41cb120f7923eb851a33.tar.gz |
fix super old bug in rega!
-rw-r--r-- | lisc/rega.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/rega.c b/lisc/rega.c index 6c9ab95..a36609e 100644 --- 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); |