[llvm-commits] CVS: reopt/test/TEST.reopt.Makefile

Brian Gaeke gaeke at cs.uiuc.edu
Thu Sep 30 13:36:56 PDT 2004



Changes in directory reopt/test:

TEST.reopt.Makefile updated: 1.23 -> 1.24
---
Log message:

Use reopt-llc for building the .s file.


---
Diffs of the changes:  (+14 -8)

Index: reopt/test/TEST.reopt.Makefile
diff -u reopt/test/TEST.reopt.Makefile:1.23 reopt/test/TEST.reopt.Makefile:1.24
--- reopt/test/TEST.reopt.Makefile:1.23	Thu Sep 23 14:48:36 2004
+++ reopt/test/TEST.reopt.Makefile	Thu Sep 30 15:36:44 2004
@@ -25,6 +25,8 @@
 
 REOPTLIBDIR = $(PROJECT_DIR)/lib/$(CONFIGURATION)
 
+REOPTLLC = $(PROJECT_DIR)/tools/$(CONFIGURATION)/reopt-llc
+
 # Libraries that contain the Reoptimizer itself
 #REOPTIMIZER_OBJS = $(PROJECT_DIR)/lib/Debug/firstTrigger.o
 
@@ -70,17 +72,21 @@
 test.$(TEST).%: Output/%.diff-reopt-llc
 	@echo "===== Finished running Reoptimizer tests for $(TESTNAME) ====="
 
-# 1. Run the necessary opt passes over the bytecode, then...
-# 1a. Compile it with LLC, using the SPARC backend's special option to
-# insert the mapping information.  We use -disable-sched to reduce
-# compile times significantly.
+ifdef ENABLE_OPTIMIZED
+REOPTLLC_DEBUG_FLAGS=-disable-sched -disable-strip -dregalloc=y \
+ -print-machineinstrs
+else
+REOPTLLC_DEBUG_FLAGS=
+endif
+
+# 1. Run the necessary instrumentation passes over the bytecode,
+# then generate sparcv9 machine code, using the special options to
+# insert the mapping information.
 $(PROGRAMS_TO_TEST:%=Output/%.reopt-llc.s): \
 Output/%.reopt-llc.s: Output/%.llvm.bc $(LOPT) $(LLC)
 	@echo "===== Building Reoptimizer version of $(TESTNAME) ====="
-	$(LOPT) -q -inline -lowerswitch -enable-correct-eh-support \
-	-lowerinvoke -branch-combine -emitfuncs -instloops $< | $(LLC) \
-	$(LLCFLAGS) -dregalloc=y -print-machineinstrs -disable-sched \
-	-disable-strip -f -enable-maps -save-ra-state -o $@ 2>$@.log
+	$(REOPTLLC) -enable-correct-eh-support $(REOPTLLC_DEBUG_FLAGS) \
+	-f -o=$@ $< 2>$@.log
 
 # 2. Link the instrumented binary with the necessary parts of the
 # compiler.






More information about the llvm-commits mailing list