summary refs log tree commit diff
path: root/mem.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-11-22 16:52:42 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2022-11-22 21:55:06 +0100
commit04e26409011389f7b5759114905195a4fb0b0286 (patch)
tree1a31d31fe7b36d953ce891716377fbfa935425c3 /mem.c
parent87dc3ea290a4ba75f153c5bb8b9fb87ec548e64f (diff)
downloadroux-04e26409011389f7b5759114905195a4fb0b0286.tar.gz
rename Tmp.ins to be more descriptive
Diffstat (limited to 'mem.c')
-rw-r--r--mem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mem.c b/mem.c
index 6cbb801..e372f0f 100644
--- a/mem.c
+++ b/mem.c
@@ -299,8 +299,8 @@ coalesce(Fn *fn)
 	}
 	while (n--) {
 		t = &fn->tmp[kill[n]];
-		assert(t->ndef == 1 && t->ins);
-		*t->ins = (Ins){.op = Onop};
+		assert(t->ndef == 1 && t->def);
+		*t->def = (Ins){.op = Onop};
 		for (u=t->use; u<&t->use[t->nuse]; u++) {
 			assert(u->type == UIns);
 			i = u->u.ins;
@@ -327,7 +327,7 @@ coalesce(Fn *fn)
 			if (s->s || !s->r.b)
 				goto Skip;
 			if (rovlap(r, s->r))
-				/* O(n^2) can be approximated
+				/* O(n) can be approximated
 				 * by 'goto Skip;' if need be
 				 */
 				for (m=n; &sl[m]<s; m++)
@@ -347,8 +347,8 @@ coalesce(Fn *fn)
 		if (s->s == s)
 			continue;
 		t = &fn->tmp[s->t];
-		assert(t->ndef == 1 && t->ins);
-		*t->ins = (Ins){.op = Onop};
+		assert(t->ndef == 1 && t->def);
+		*t->def = (Ins){.op = Onop};
 		for (u=t->use; u<&t->use[t->nuse]; u++) {
 			assert(u->type == UIns);
 			arg = u->u.ins->arg;