Changes in directory llvm-test:

Makefile.rules updated: 1.22 -> 1.23
Makefile.programs updated: 1.247 -> 1.248
---
Log message:

Add a rule for running utils/findmisopt. You can just "make misopt" now in
any test directory and it will run findmisopt correctly. This is useful in
situations where you have all three backends failing (llc, cbe, jit) and
suspect that its a misoptimization. Since bugpoint doesn't work well in
this situation, findmisopt uses a brute force approach to find the smallest
set of passes that cause a difference in the output.


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

 Makefile.programs |    8 +++++++-
 Makefile.rules    |    1 +
 2 files changed, 8 insertions(+), 1 deletion(-)


Index: llvm-test/Makefile.rules
diff -u llvm-test/Makefile.rules:1.22 llvm-test/Makefile.rules:1.23
--- llvm-test/Makefile.rules:1.22       Thu Dec 21 16:57:10 2006
+++ llvm-test/Makefile.rules    Thu Jan 11 18:58:38 2007
@@ -282,6 +282,7 @@
 LLINK     = $(LLVMTOOLCURRENT)/llvm-link$(EXEEXT)
 LPROF     = $(LLVMTOOLCURRENT)/llvm-prof$(EXEEXT)
 LBUGPOINT = $(LLVMTOOLCURRENT)/bugpoint$(EXEEXT)
+LFINDMISOPT= $(LLVM_SRC_ROOT)/utils/findmisopt
 LLVMC     = $(LLVMTOOLCURRENT)/llvmc$(EXEEXT)
 LUPGRADE  = $(LLVMTOOLCURRENT)/llvm-upgrade$(EXEEXT)
 ifeq ($(LLVMGCC_MAJVERS),3)


Index: llvm-test/Makefile.programs
diff -u llvm-test/Makefile.programs:1.247 llvm-test/Makefile.programs:1.248
--- llvm-test/Makefile.programs:1.247   Thu Jan 11 14:16:47 2007
+++ llvm-test/Makefile.programs Thu Jan 11 18:58:38 2007
@@ -451,8 +451,14 @@
 Output/%.bugpoint-cbe: Output/%.llvm.bc $(LBUGPOINT) Output/%.out-nat
        $(LBUGPOINT) $< -cbe-bug $(BUGPOINT_OPTIONS) $(BUGPOINT_ARGS)
 
+$(PROGRAMS_TO_TEST:%=Output/%.misopt.out): \
+Output/%.misopt.out: Output/%.linked.rbc $(LFINDMISOPT) 
+       $(LFINDMISOPT) $< Output/$*.misopt "$(RUN_OPTIONS)" \
+         "$(STDIN_FILENAME)" > Output/$*.misopt.out 2>&1
+
 clean::
-       rm -f bugpoint-*
+       rm -f bugpoint-* 
+       rm -rf Output/misopt-*
 
 LIBPROFILESO = $(LLVM_OBJ_ROOT)/Debug/lib/libprofile_rt.so
 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to