summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-27 11:32:38 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-27 11:32:38 -0500
commitd6fb05a233e2ef22cd569418fe3714fc908a7b08 (patch)
treeb18bb12b0084fb1a51664458aab8d435eec4932c
parent3302e31534f2d2bbb4a5be7dcf9c49eede2cfd7a (diff)
downloadroux-d6fb05a233e2ef22cd569418fe3714fc908a7b08.tar.gz
disable optimizations
-rw-r--r--lisc/Makefile2
-rw-r--r--lisc/main.c2
-rw-r--r--lisc/ssa.c4
3 files changed, 7 insertions, 1 deletions
diff --git a/lisc/Makefile b/lisc/Makefile
index 560fd4f..389e376 100644
--- a/lisc/Makefile
+++ b/lisc/Makefile
@@ -1,5 +1,5 @@
 BIN = lisc
-OBJ = main.o util.o parse.o mem.o ssa.o copy.o live.o isel.o spill.o rega.o emit.o
+OBJ = main.o util.o parse.o ssa.o live.o isel.o spill.o rega.o emit.o
 
 CFLAGS = -Wall -Wextra -std=c99 -g -pedantic
 
diff --git a/lisc/main.c b/lisc/main.c
index a393a69..10de4d6 100644
--- a/lisc/main.c
+++ b/lisc/main.c
@@ -53,11 +53,13 @@ func(Fn *fn)
 	fillrpo(fn);
 	fillpreds(fn);
 	filluse(fn);
+#if 0
 	memopt(fn);
 	ssa(fn);
 	filluse(fn);
 	copy(fn);
 	filluse(fn);
+#endif
 	isel(fn);
 	filllive(fn);
 	fillcost(fn);
diff --git a/lisc/ssa.c b/lisc/ssa.c
index 9d6ef4a..8783d73 100644
--- a/lisc/ssa.c
+++ b/lisc/ssa.c
@@ -166,6 +166,8 @@ fillrpo(Fn *f)
 	}
 }
 
+#if 0
+
 /* for dominators computation, read
  * "A Simple, Fast Dominance Algorithm"
  * by K. Cooper, T. Harvey, and K. Kennedy.
@@ -507,3 +509,5 @@ ssa(Fn *fn)
 		printfn(fn, stderr);
 	}
 }
+
+#endif