summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-13 15:43:16 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-13 15:43:23 -0500
commitb8c76457464714908bef43fd992a56ca94091eba (patch)
treecd21e2a5865886d4782fdc059664d0f8dc149811
parent8c0574eaa16248260fbd615e7a6ef9fd87119189 (diff)
downloadroux-b8c76457464714908bef43fd992a56ca94091eba.tar.gz
improve the debug output of copy()
-rw-r--r--lisc/copy.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisc/copy.c b/lisc/copy.c
index c04f36a..0e62ed7 100644
--- a/lisc/copy.c
+++ b/lisc/copy.c
@@ -144,12 +144,17 @@ copy(Fn *fn)
 	}
 	if (debug['C']) {
 		fprintf(stderr, "\n> Copy information:");
-		for (t=Tmp0; t<fn->ntmp; t++)
-			if (!req(cp[t], TMP(t))) {
+		for (t=Tmp0; t<fn->ntmp; t++) {
+			if (req(cp[t], R)) {
+				fprintf(stderr, "\n%10s not seen!",
+					fn->tmp[t].name);
+			}
+			else if (!req(cp[t], TMP(t))) {
 				fprintf(stderr, "\n%10s copy of ",
 					fn->tmp[t].name);
 				printref(cp[t], fn, stderr);
 			}
+		}
 		fprintf(stderr, "\n\n> After copy elimination:\n");
 		printfn(fn, stderr);
 	}