summary refs log tree commit diff
path: root/lisc/main.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-03 15:50:02 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-03 15:50:02 -0500
commit45b6017a6122024f48798606578b78b0cb55d9ee (patch)
treef182789736f3450a58f77c1fe5511ff6bc285ec0 /lisc/main.c
parent09176bc115f92a5756796b4fe0f96c49ca5a3d0d (diff)
downloadroux-45b6017a6122024f48798606578b78b0cb55d9ee.tar.gz
finish emit lifting, seems ok now
Diffstat (limited to 'lisc/main.c')
-rw-r--r--lisc/main.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lisc/main.c b/lisc/main.c
index 65a8476..10de4d6 100644
--- a/lisc/main.c
+++ b/lisc/main.c
@@ -30,7 +30,6 @@ dumpts(Bits *b, Tmp *tmp, FILE *f)
 static void
 data(Dat *d)
 {
-#if 0
 	if (dbg)
 		return;
 	if (d->type == DEnd) {
@@ -38,7 +37,6 @@ data(Dat *d)
 		freeall();
 	}
 	emitdat(d, stdout);
-#endif
 }
 
 static void
@@ -55,18 +53,13 @@ func(Fn *fn)
 	fillrpo(fn);
 	fillpreds(fn);
 	filluse(fn);
-
-	isel(fn);
-	filllive(fn);
-	fillcost(fn);
-	spill(fn);
-	rega(fn);
 #if 0
 	memopt(fn);
 	ssa(fn);
 	filluse(fn);
 	copy(fn);
 	filluse(fn);
+#endif
 	isel(fn);
 	filllive(fn);
 	fillcost(fn);
@@ -84,7 +77,6 @@ func(Fn *fn)
 		emitfn(fn, stdout);
 		printf("/* end function %s */\n\n", fn->name);
 	} else
-#endif
 		fprintf(stderr, "\n");
 	freeall();
 }