[llvm-commits] [poolalloc] r124998 - in /poolalloc/trunk/test: TEST.dsgraph.Makefile TEST.dsgraph.report
Arushi Aggarwal
aggarwa4 at illinois.edu
Sun Feb 6 17:40:26 PST 2011
Author: aggarwa4
Date: Sun Feb 6 19:40:26 2011
New Revision: 124998
URL: http://llvm.org/viewvc/llvm-project?rev=124998&view=rev
Log:
Make use of the AssistDS passes.
Might help in call graph construction in some
cases.
Modified:
poolalloc/trunk/test/TEST.dsgraph.Makefile
poolalloc/trunk/test/TEST.dsgraph.report
Modified: poolalloc/trunk/test/TEST.dsgraph.Makefile
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/TEST.dsgraph.Makefile?rev=124998&r1=124997&r2=124998&view=diff
==============================================================================
--- poolalloc/trunk/test/TEST.dsgraph.Makefile (original)
+++ poolalloc/trunk/test/TEST.dsgraph.Makefile Sun Feb 6 19:40:26 2011
@@ -15,6 +15,7 @@
# Pathame to the DSA pass dynamic library
DSA_SO := $(PADIR)/$(CONFIGURATION)/lib/libLLVMDataStructure$(SHLIBEXT)
+ASSIST_SO := $(PADIR)/$(CONFIGURATION)/lib/libAssistDS$(SHLIBEXT)
# Command for running the opt program
RUNOPT := $(RUNTOOLSAFELY) $(LLVM_OBJ_ROOT)/projects/poolalloc/$(CONFIGURATION)/bin/watchdog $(LOPT) -load $(DSA_SO)
@@ -27,16 +28,22 @@
ANALYZE_OPTS += -instcount -disable-verify -analyze
MEM := -track-memory -time-passes -disable-output
+#TYPE_INFERENCE_OPT := 1
+
#ifdef TYPE_INFERENCE_OPT
-ANALYZE_OPTS += -enable-type-inference-opts
+ANALYZE_OPTS += -enable-type-inference-opts -dsa-stdlib-no-fold
#endif
+$(PROGRAMS_TO_TEST:%=Output/%.base.bc): \
+Output/%.base.bc: Output/%.llvm.bc $(LOPT) $(ASSIST_SO)
+ -$(RUNOPT) -load $(ASSIST_SO) -info-output-file=$(CURDIR)/$@.info -instnamer -internalize -indclone -funcspec -ipsccp -deadargelim -instcombine -globaldce -stats -time-passes $< -f -o $@
+
$(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
-Output/%.$(TEST).report.txt: Output/%.llvm.bc Output/%.LOC.txt $(LOPT)
+Output/%.$(TEST).report.txt: Output/%.base.bc Output/%.LOC.txt $(LOPT)
@# Gather data
-($(RUNOPT) -dsa-$(PASS) $(ANALYZE_OPTS) $<)> $@.time.1 2>&1
-($(RUNOPT) -dsa-$(PASS) -dsa-stdlib-no-fold $(ANALYZE_OPTS) $<)> $@.time.2 2>&1
- -($(RUNOPT) $(MEM) -dsa-$(PASS) -disable-verify -debug-pass=Details $<)> $@.mem.1 2>&1
+ -($(RUNOPT) $(MEM) -dsa-$(PASS) -disable-verify $<)> $@.mem.1 2>&1
@# Emit data.
@echo "---------------------------------------------------------------" > $@
@echo ">>> ========= '$(RELDIR)/$*' Program" >> $@
@@ -111,6 +118,13 @@
@echo >> $@
@/bin/echo -n "MEM: " >> $@
- at grep ' Top-down Data Structure' $@.mem.1 >> $@
+ @# Emit AssistDS stats
+ @/bin/echo -n "CLONED_FUNCSPEC: " >> $@
+ - at grep 'Number of Functions Cloned in FuncSpec' $<.info >> $@
+ @echo >> $@
+ @/bin/echo -n "CLONED_INDCLONE: " >> $@
+ - at grep 'Number of Functions Cloned in IndClone' $<.info >> $@
+ @echo >> $@
Modified: poolalloc/trunk/test/TEST.dsgraph.report
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/TEST.dsgraph.report?rev=124998&r1=124997&r2=124998&view=diff
==============================================================================
--- poolalloc/trunk/test/TEST.dsgraph.report (original)
+++ poolalloc/trunk/test/TEST.dsgraph.report Sun Feb 6 19:40:26 2011
@@ -171,4 +171,6 @@
[],
# Nodes Folded
["StdLibFold", "STD_LIB_FOLD: *([0-9]+)"],
+ ["IndClone", "CLONED_INDCLONE: *([0-9]+)"],
+ ["FuncSpec", "CLONED_FUNCSPEC: *([0-9]+)"],
);
More information about the llvm-commits
mailing list