[llvm-commits] [poolalloc] r128975 - in /poolalloc/trunk/test: TEST.types.Makefile TEST.types.report
Arushi Aggarwal
aggarwa4 at illinois.edu
Tue Apr 5 18:15:09 PDT 2011
Author: aggarwa4
Date: Tue Apr 5 20:15:09 2011
New Revision: 128975
URL: http://llvm.org/viewvc/llvm-project?rev=128975&view=rev
Log:
Updated to the latest passes and more stats
Modified:
poolalloc/trunk/test/TEST.types.Makefile
poolalloc/trunk/test/TEST.types.report
Modified: poolalloc/trunk/test/TEST.types.Makefile
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/TEST.types.Makefile?rev=128975&r1=128974&r2=128975&view=diff
==============================================================================
--- poolalloc/trunk/test/TEST.types.Makefile (original)
+++ poolalloc/trunk/test/TEST.types.Makefile Tue Apr 5 20:15:09 2011
@@ -32,12 +32,12 @@
MEM := -track-memory -time-passes -disable-output
#SAFE_OPTS := -internalize -scalarrepl -deadargelim -globaldce -basiccg -inline
-#SAFE_OPTS := -internalize -deadargelim -globaldce -basiccg -inline
-SAFE_OPTS := -internalize -deadargelim -globaldce
+SAFE_OPTS := -internalize -deadargelim -globaldce -basiccg -inline
+#SAFE_OPTS := -internalize -deadargelim -globaldce
$(PROGRAMS_TO_TEST:%=Output/%.linked1.bc): \
Output/%.linked1.bc: Output/%.linked.rbc $(LOPT)
- -$(RUNOPT) -disable-opt $(SAFE_OPTS) -dce -info-output-file=$(CURDIR)/$@.info -stats -time-passes $< -f -o $@
+ -$(RUNOPT) -disable-opt $(SAFE_OPTS) -mem2reg -dce -info-output-file=$(CURDIR)/$@.info -stats -time-passes $< -f -o $@
$(PROGRAMS_TO_TEST:%=Output/%.llvm1.bc): \
Output/%.llvm1.bc: Output/%.linked1.bc $(LLVM_LDDPROG)
@@ -46,17 +46,14 @@
$(PROGRAMS_TO_TEST:%=Output/%.temp1.bc): \
Output/%.temp1.bc: Output/%.llvm1.bc
-$(RUNTOOLSAFELY) $(LLVMLD) -disable-opt $(SAFE_OPTS) -link-as-library $< $(PA_PRE_RT) -o $@
-$(PROGRAMS_TO_TEST:%=Output/%.opt1.bc): \
-Output/%.opt1.bc: Output/%.llvm1.bc $(LOPT) $(ASSIST_SO)
- -$(RUNOPT) -load $(ASSIST_SO) -disable-opt -info-output-file=$(CURDIR)/$@.info -instnamer -internalize -varargsfunc -indclone -funcspec -ipsccp -deadargelim -simplifygep -die -mergegep -mergearrgep -die -globaldce -simplifycfg -deadargelim -arg-simplify -varargsfunc -indclone -funcspec -deadargelim -globaldce -die -simplifycfg -gep-args -deadargelim -die -mergegep -die -dce -globaldce -stats -time-passes $< -f -o $@
$(PROGRAMS_TO_TEST:%=Output/%.opt.bc): \
Output/%.opt.bc: Output/%.llvm1.bc $(LOPT) $(ASSIST_SO)
- -$(RUNOPT) -load $(ASSIST_SO) -disable-opt -info-output-file=$(CURDIR)/$@.info -instnamer -internalize -simplify-mrv -basiccg -inline -dce -simplify-mrv -dce -varargsfunc -indclone -funcspec -ipsccp -deadargelim -simplifygep -die -mergegep -die -mergearrgep -die -globaldce -simplifycfg -deadargelim -arg-simplify -die -varargsfunc -die -simplifycfg -globaldce -indclone -funcspec -deadargelim -globaldce -die -simplifycfg -gep-args -deadargelim -die -mergefunc -die -mergegep -die -mergearrgep -die -globaldce -int2ptrcmp -die -dce -simplify-mrv -dce -stats -time-passes $< -f -o $@
+ -$(RUNOPT) -load $(ASSIST_SO) -disable-opt -info-output-file=$(CURDIR)/$@.info -instnamer -internalize -mem2reg -dce -simplify-mrv -basiccg -inline -dce -simplify-mrv -dce -varargsfunc -indclone -funcspec -ipsccp -deadargelim -simplify-gep -die -die -mergearrgep -die -globaldce -simplifycfg -deadargelim -arg-simplify -die -varargsfunc -die -simplifycfg -globaldce -indclone -funcspec -deadargelim -globaldce -die -simplifycfg -gep-args -deadargelim -die -mergefunc -die -die -mergearrgep -die -globaldce -int2ptrcmp -die -dce -simplify-mrv -dce -inline -mem2reg -dce -arg-cast -dce -type-analysis -stats -time-passes $< -f -o $@
$(PROGRAMS_TO_TEST:%=Output/%.temp2.bc): \
Output/%.temp2.bc: Output/%.temp1.bc $(LOPT) $(ASSIST_SO)
- -$(RUNOPT) -load $(ASSIST_SO) -disable-opt -info-output-file=$(CURDIR)/$@.info -instnamer -internalize -varargsfunc -indclone -funcspec -ipsccp -deadargelim -mergegep -die -globaldce -stats -time-passes $< -f -o $@
+ -$(RUNOPT) -load $(ASSIST_SO) -disable-opt -info-output-file=$(CURDIR)/$@.info -instnamer -internalize -varargsfunc -indclone -funcspec -ipsccp -deadargelim -mergegep -die -globaldce -stats -time-passes $< -f -o $@
$(PROGRAMS_TO_TEST:%=Output/%.opt.s): \
Output/%.opt.s: Output/%.opt.bc $(LLC)
@@ -111,10 +108,10 @@
$(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
-Output/%.$(TEST).report.txt: Output/%.opt.bc Output/%.LOC.txt $(LOPT) Output/%.out-nat Output/%.opt.diff-nat Output/%.llvm1.diff-nat
+Output/%.$(TEST).report.txt: Output/%.opt.bc Output/%.LOC.txt $(LOPT) Output/%.out-nat Output/%.opt.diff-nat
@# Gather data
- -($(RUNOPT) -dsa-$(PASS) -enable-type-inference-opts -dsa-stdlib-no-fold $(ANALYZE_OPTS) $<)> $@.time.1 2>&1
- -($(RUNOPT) -dsa-$(PASS) $(ANALYZE_OPTS) $<)> $@.time.2 2>&1
+ -($(RUNOPT) -dsa-$(PASS) -enable-type-inference-opts -dsa-stdlib-no-fold $(ANALYZE_OPTS) $<)> $@.time.1 2>&1
+ -($(RUNOPT) -dsa-$(PASS) $(ANALYZE_OPTS) $<)> $@.time.2 2>&1
@# Emit data.
@echo "---------------------------------------------------------------" > $@
@echo ">>> ========= '$(RELDIR)/$*' Program" >> $@
@@ -152,6 +149,9 @@
@/bin/echo -n "ACCESSES UNTYPED: " >> $@
- at grep 'Number of loads/stores which are untyped' $@.time.2 >> $@
@echo >> $@
+ @/bin/echo -n "ACCESSES TYPED0: " >> $@
+ - at grep 'Number of loads/stores which are access a DSNode with 0 type' $@.time.1 >> $@
+ @echo >> $@
@/bin/echo -n "ACCESSES TYPED1: " >> $@
- at grep 'Number of loads/stores which are access a DSNode with 1 type' $@.time.1 >> $@
@echo >> $@
@@ -164,12 +164,18 @@
@/bin/echo -n "ACCESSES TYPED4: " >> $@
- at grep 'Number of loads/stores which are access a DSNode with >3 type' $@.time.1 >> $@
@echo >> $@
+ @/bin/echo -n "IGN: " >> $@
+ - at grep 'Number of instructions ignored' $@.time.1 >> $@
+ @echo >> $@
@/bin/echo -n "ACCESSES I: " >> $@
- at grep 'Number of loads/stores which are on incomplete nodes' $@.time.1 >> $@
@echo >> $@
@/bin/echo -n "ACCESSES E: " >> $@
- at grep 'Number of loads/stores which are on external nodes' $@.time.1 >> $@
@echo >> $@
+ @/bin/echo -n "ACCESSES F: " >> $@
+ - at grep 'Number of loads/stores which are on folded nodes' $@.time.1 >> $@
+ @echo >> $@
@/bin/echo -n "ACCESSES U: " >> $@
- at grep 'Number of loads/stores which are on unknown nodes' $@.time.1 >> $@
@echo >> $@
@@ -211,6 +217,15 @@
@/bin/echo -n "MRV: " >> $@
- at grep 'Number of Instructions Deleted' $<.info >> $@
@echo >> $@
+ @/bin/echo -n "ALLOC: " >> $@
+ - at grep 'Number of malloc-like allocators' $@.time.1 >> $@
+ @echo >> $@
+ @/bin/echo -n "DEALLOC: " >> $@
+ - at grep 'Number of free-like deallocators' $@.time.1 >> $@
+ @echo >> $@
+ @/bin/echo -n "CAST: " >> $@
+ - at grep 'Number of Args bitcasted' $<.info >> $@
+ @echo >> $@
@/bin/echo -n "INDCALLS: " >> $@
- at grep 'Number of unresolved IndCalls' $@.time.1 >> $@
@echo >> $@
Modified: poolalloc/trunk/test/TEST.types.report
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/TEST.types.report?rev=128975&r1=128974&r2=128975&view=diff
==============================================================================
--- poolalloc/trunk/test/TEST.types.report (original)
+++ poolalloc/trunk/test/TEST.types.report Tue Apr 5 20:15:09 2011
@@ -149,12 +149,15 @@
["NonType", "ACCESSES UNTYPED: *([0-9]+)"],
["TS %" , sub { return TypeSafeRatio(@_); }],
[],
+ ["Ign", "IGN: *([0-9]+)"],
+ ["Type0", "ACCESSES TYPED0: *([0-9]+)"],
["Type1", "ACCESSES TYPED1: *([0-9]+)"],
["Type2", "ACCESSES TYPED2: *([0-9]+)"],
["Type3", "ACCESSES TYPED3: *([0-9]+)"],
["Type4", "ACCESSES TYPED4: *([0-9]+)"],
["I", "ACCESSES I: *([0-9]+)"],
["E", "ACCESSES E: *([0-9]+)"],
+ ["F", "ACCESSES F: *([0-9]+)"],
["U", "ACCESSES U: *([0-9]+)"],
# Nodes Folded
[],
@@ -167,5 +170,8 @@
["I2PB", "I2PB: *([0-9]+)"],
["I2PS", "I2PS: *([0-9]+)"],
["MRV", "MRV: *([0-9]+)"],
+ ["AL", "ALLOC: *([0-9]+)"],
+ ["DE", "DEALLOC: *([0-9]+)"],
+ ["CAST", "CAST: *([0-9]+)"],
["Calls", "INDCALLS: *([0-9]+)"],
);
More information about the llvm-commits
mailing list