[llvm-commits] CVS: reopt/test/TEST.reopt.Makefile
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Mar 31 10:37:01 PST 2004
Changes in directory reopt/test:
TEST.reopt.Makefile updated: 1.10 -> 1.11
---
Log message:
Add call to lowerinvoke.
Add a note about our heretical use of lowerswitch and lowerinvoke.
Add in -ldl in case we want to test programs linked with that library.
---
Diffs of the changes: (+8 -3)
Index: reopt/test/TEST.reopt.Makefile
diff -u reopt/test/TEST.reopt.Makefile:1.10 reopt/test/TEST.reopt.Makefile:1.11
--- reopt/test/TEST.reopt.Makefile:1.10 Wed Mar 10 15:54:19 2004
+++ reopt/test/TEST.reopt.Makefile Wed Mar 31 10:36:43 2004
@@ -15,6 +15,10 @@
# environment variable; for example:
# % setenv LLVM_REOPT '--debug'
#
+# NOTE: Don't use -lowerswitch -lowerinvoke on unsuspecting programs
+# like we do. This is just a temporary hack around the fact that
+# -branch-combine doesn't handle non-branch terminator instructions.
+#
##===----------------------------------------------------------------------===##
TESTNAME = $*
@@ -40,7 +44,7 @@
$(DESTLIBCURRENT)/libanalysis.a
# Solaris libraries that the Reoptimizer depends on
-REOPTIMIZER_SOLARISLIBS = -lcpc -lm -lrt -lmalloc
+REOPTIMIZER_SOLARISLIBS = -lcpc -lm -lrt -lmalloc -ldl
WHOLE_REOPTIMIZER = $(DESTLIBCURRENT)/wholereoptimizer.o
$(WHOLE_REOPTIMIZER): $(REOPTIMIZER_OBJS) $(REOPTIMIZER_LLVMOBJS)
@@ -67,8 +71,9 @@
$(PROGRAMS_TO_TEST:%=Output/%.reopt-llc.s): \
Output/%.reopt-llc.s: Output/%.llvm.bc
@echo "===== Building Reoptimizer version of $(TESTNAME) ====="
- -$(LOPT) -q -inline -lowerswitch -branch-combine -emitfuncs -instloops \
- $< | $(LLC) $(LLCFLAGS) -disable-sched -disable-strip -f -enable-maps \
+ -$(LOPT) -q -inline -lowerswitch -enable-correct-eh-support \
+ -lowerinvoke -branch-combine -emitfuncs -instloops $< | $(LLC) \
+ $(LLCFLAGS) -disable-sched -disable-strip -f -enable-maps \
-save-ra-state -o $@
# 2. Link the instrumented binary with the necessary parts of the
More information about the llvm-commits
mailing list