summary refs log tree commit diff
path: root/fold.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-02-06 14:36:27 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-02-06 14:36:27 -0500
commit7e1c1f9f779aa4d55c3cbc9e16a9f8f2884dd3fe (patch)
tree1956b81f5c2a9eea51d6bbc9a4071d83874dd492 /fold.c
parent835b2b4910c19ee2a9411da55080be6b1e30a722 (diff)
downloadroux-7e1c1f9f779aa4d55c3cbc9e16a9f8f2884dd3fe.tar.gz
use uint for block ids
Diffstat (limited to 'fold.c')
-rw-r--r--fold.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fold.c b/fold.c
index 110a23c..c8d490c 100644
--- a/fold.c
+++ b/fold.c
@@ -188,15 +188,15 @@ fold(Fn *fn)
 	Blk *b, **pb;
 	Phi *p, **pp;
 	Ins *i;
-	int n, d;
-	uint a;
+	int t, d;
+	uint n, a;
 
 	val = emalloc(fn->ntmp * sizeof val[0]);
 	edge = emalloc(fn->nblk * sizeof edge[0]);
 	usewrk = vnew(0, sizeof usewrk[0], Pheap);
 
-	for (n=0; n<fn->ntmp; n++)
-		val[n] = Top;
+	for (t=0; t<fn->ntmp; t++)
+		val[t] = Top;
 	for (n=0; n<fn->nblk; n++) {
 		b = fn->rpo[n];
 		b->visit = 0;
@@ -256,14 +256,14 @@ fold(Fn *fn)
 
 	if (debug['F']) {
 		fprintf(stderr, "\n> SCCP findings:");
-		for (n=Tmp0; n<fn->ntmp; n++) {
-			if (val[n] == Bot)
+		for (t=Tmp0; t<fn->ntmp; t++) {
+			if (val[t] == Bot)
 				continue;
-			fprintf(stderr, "\n%10s: ", fn->tmp[n].name);
-			if (val[n] == Top)
+			fprintf(stderr, "\n%10s: ", fn->tmp[t].name);
+			if (val[t] == Top)
 				fprintf(stderr, "Top");
 			else
-				printref(CON(val[n]), fn, stderr);
+				printref(CON(val[t]), fn, stderr);
 		}
 		fprintf(stderr, "\n dead code: ");
 	}