summary refs log tree commit diff
path: root/fold.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-09 14:22:25 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-09 14:22:25 -0400
commita8fc6960525fd77a5a458e878809907939fb5f3e (patch)
tree5b1560f23b0c8b981cd9a0cd8c29f07e37363293 /fold.c
parent1e0f18e9086b825d6fc941bf37306ae2823f0341 (diff)
downloadroux-a8fc6960525fd77a5a458e878809907939fb5f3e.tar.gz
more debug tweaks in fold
Diffstat (limited to 'fold.c')
-rw-r--r--fold.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fold.c b/fold.c
index e9d9228..2962991 100644
--- a/fold.c
+++ b/fold.c
@@ -236,15 +236,15 @@ fold(Fn *fn)
 	if (debug['F']) {
 		fprintf(stderr, "\n> SCCP findings:");
 		for (n=Tmp0; n<fn->ntmp; n++) {
+			if (val[n] == Bot)
+				continue;
 			fprintf(stderr, "\n%10s: ", fn->tmp[n].name);
 			if (val[n] == Top)
 				fprintf(stderr, "Top");
-			else if (val[n] == Bot)
-				fprintf(stderr, "Bot");
 			else
 				printref(CON(val[n]), fn, stderr);
 		}
-		fprintf(stderr, "\n%10s: ", "dead!");
+		fprintf(stderr, "\n dead code: ");
 	}
 
 	/* 2. trim dead code, replace constants */
@@ -293,7 +293,7 @@ fold(Fn *fn)
 	if (debug['F']) {
 		if (!d)
 			fprintf(stderr, "(none)");
-		fprintf(stderr, "\n\n> After folding:\n");
+		fprintf(stderr, "\n\n> After constant folding:\n");
 		printfn(fn, stderr);
 	}