[llvm-commits] CVS: llvm/test/Programs/Makefile.programs

Chris Lattner lattner at cs.uiuc.edu
Wed Feb 11 13:04:02 PST 2004


Changes in directory llvm/test/Programs:

Makefile.programs updated: 1.115 -> 1.116

---
Log message:

The rule to generate profile info doesn't work right for spec


---
Diffs of the changes:  (+10 -9)

Index: llvm/test/Programs/Makefile.programs
diff -u llvm/test/Programs/Makefile.programs:1.115 llvm/test/Programs/Makefile.programs:1.116
--- llvm/test/Programs/Makefile.programs:1.115	Tue Feb 10 13:15:08 2004
+++ llvm/test/Programs/Makefile.programs	Wed Feb 11 13:03:44 2004
@@ -382,15 +382,6 @@
 Output/%.bugpoint-jit: Output/%.llvm.bc $(LBUGPOINT) Output/%.out-nat
 	$(LBUGPOINT) $< -run-jit $(BUGPOINT_OPTIONS)
 
-endif
-
-
-#
-# Rules to generate profiling information
-#
-$(PROGRAMS_TO_TEST:%=Output/%.llvm-prof.bc): \
-Output/%.llvm-prof.bc: Output/%.llvm.bc
-	$(LOPT) -insert-block-profiling $< -o $@ -f
 
 LIBPROFILESO := $(LEVEL)/lib/Debug/libprofile_rt.so
 
@@ -401,6 +392,16 @@
             -fake-argv0 'Output/$*.llvm.bc' -load $(LIBPROFILESO) $< -llvmprof-output $@ $(RUN_OPTIONS)
 	@cmp -s Output/$*.out-prof Output/$*.out-nat || \
 		printf "***\n***\n*** WARNING: Output of profiled program (Output/$*.out-prof)\n*** doesn't match the output of the native program (Output/$*.out-nat)!\n***\n***\n";
+
+endif
+
+
+#
+# Rules to generate profiling information
+#
+$(PROGRAMS_TO_TEST:%=Output/%.llvm-prof.bc): \
+Output/%.llvm-prof.bc: Output/%.llvm.bc
+	$(LOPT) -insert-block-profiling $< -o $@ -f
 
 $(PROGRAMS_TO_TEST:%=Output/%.printprof): \
 Output/%.printprof: Output/%.llvm.bc Output/%.prof $(LPROF)





More information about the llvm-commits mailing list