summary refs log tree commit diff
path: root/spill.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-04 14:55:28 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-04 15:44:43 -0400
commit7b3f0f8424155d4213cc8ad399fb41a4e4d64333 (patch)
tree8b9a22fc34870716d8730d564583a13e8d8037fa /spill.c
parent74562a93debff6954f16a4c3434efa69d37c954b (diff)
downloadroux-7b3f0f8424155d4213cc8ad399fb41a4e4d64333.tar.gz
fat il!
Diffstat (limited to 'spill.c')
-rw-r--r--spill.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/spill.c b/spill.c
index dad18d2..23d7bf6 100644
--- a/spill.c
+++ b/spill.c
@@ -34,8 +34,8 @@ tmpuse(Ref r, int use, int loop, Fn *fn)
 	Mem *m;
 	Tmp *t;
 
-	if (rtype(r) == RAMem) {
-		m = &fn->mem[r.val & AMask];
+	if (rtype(r) == RMem) {
+		m = &fn->mem[r.val];
 		tmpuse(m->base, 1, loop, fn);
 		tmpuse(m->index, 1, loop, fn);
 	}
@@ -386,7 +386,7 @@ spill(Fn *fn)
 				bsunion(v, u);
 			}
 			limit2(v, 0, 0, w);
-		} else if (rtype(b->jmp.arg) == RACall) {
+		} else if (rtype(b->jmp.arg) == RCall) {
 			/* return */
 			r = retregs(b->jmp.arg, 0);
 			v->t[0] |= r;
@@ -416,13 +416,13 @@ spill(Fn *fn)
 			}
 			j = opdesc[i->op].nmem;
 			for (n=0; n<2; n++)
-				if (rtype(i->arg[n]) == RAMem)
+				if (rtype(i->arg[n]) == RMem)
 					j--;
 			for (n=0; n<2; n++)
 				switch (rtype(i->arg[n])) {
-				case RAMem:
+				case RMem:
 					t = i->arg[n].val;
-					m = &fn->mem[t & AMask];
+					m = &fn->mem[t];
 					if (rtype(m->base) == RTmp) {
 						bsset(v, m->base.val);
 						bsset(w, m->base.val);