[llvm-commits] [poolalloc] r121991 - in /poolalloc/trunk/test: TEST.dsgraph.Makefile TEST.dsgraph.report

Arushi Aggarwal aggarwa4 at illinois.edu
Thu Dec 16 11:21:58 PST 2010


Author: aggarwa4
Date: Thu Dec 16 13:21:58 2010
New Revision: 121991

URL: http://llvm.org/viewvc/llvm-project?rev=121991&view=rev
Log:
Get more stats in the DSA tests, mostly for type safety.

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=121991&r1=121990&r2=121991&view=diff
==============================================================================
--- poolalloc/trunk/test/TEST.dsgraph.Makefile (original)
+++ poolalloc/trunk/test/TEST.dsgraph.Makefile Thu Dec 16 13:21:58 2010
@@ -22,16 +22,17 @@
 # PASS - The dsgraph pass to run: ds, bu, td
 PASS := td
 
-#ANALYZE_OPTS := -stats -time-passes -only-print-main-ds -dsstats
-ANALYZE_OPTS := -stats -time-passes -dsstats
+ANALYZE_OPTS := -stats -time-passes -disable-output -dsstats
+#ANALYZE_OPTS := -stats -time-passes -dsstats 
 ANALYZE_OPTS +=  -instcount -disable-verify
-MEM := -track-memory -time-passes
+MEM := -track-memory -time-passes -disable-output
 
 $(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \
 Output/%.$(TEST).report.txt: Output/%.llvm.bc Output/%.LOC.txt $(LOPT)
 	@# Gather data
-	-($(RUNOPT) -analyze -dsa-$(PASS) $(ANALYZE_OPTS) $<)> $@.time.1 2>&1
-	-($(RUNOPT) -analyze $(MEM) -dsa-$(PASS) -disable-verify $<)> $@.mem.1 2>&1
+	-($(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
 	@# Emit data.
 	@echo "---------------------------------------------------------------" > $@
 	@echo ">>> ========= '$(RELDIR)/$*' Program" >> $@
@@ -63,6 +64,30 @@
 	@/bin/echo -n "ACCESSES UNTYPED: " >> $@
 	- at grep 'Number of loads/stores which are untyped' $@.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 >> $@
+	@/bin/echo -n "ACCESSES TYPED2: " >> $@
+	- at grep 'Number of loads/stores which are access a DSNode with 2 type' $@.time.1 >> $@
+	@echo >> $@
+	@/bin/echo -n "ACCESSES TYPED3: " >> $@
+	- at grep 'Number of loads/stores which are access a DSNode with 3 type' $@.time.1 >> $@
+	@echo >> $@
+	@/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 "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 U: " >> $@
+	- at grep 'Number of loads/stores which are on unknown nodes' $@.time.1 >> $@
+	@echo >> $@
+	@/bin/echo -n "STD_LIB_FOLD: " >> $@
+	- at grep 'Number of nodes folded in std lib' $@.time.1 >> $@
+	@echo >> $@
 	@# Emit timing data.
 	@/bin/echo -n "TIME: " >> $@
 	- at grep '  Local Data Structure' $@.time.1 >> $@

Modified: poolalloc/trunk/test/TEST.dsgraph.report
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/TEST.dsgraph.report?rev=121991&r1=121990&r2=121991&view=diff
==============================================================================
--- poolalloc/trunk/test/TEST.dsgraph.report (original)
+++ poolalloc/trunk/test/TEST.dsgraph.report Thu Dec 16 13:21:58 2010
@@ -159,5 +159,16 @@
             ["TypeSafe", "ACCESSES TYPED: *([0-9]+)"],
             ["NonType",  "ACCESSES UNTYPED: *([0-9]+)"],
             ["TS %" , sub { return TypeSafeRatio(@_); }],
+            [],
+            ["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]+)"],
+            ["U", "ACCESSES U: *([0-9]+)"],
+            ["U", "ACCESSES U: *([0-9]+)"],
             []
+# Nodes Folded
+            ["StdLibFold", "STD_LIB_FOLD: *([0-9]+)"],
            );





More information about the llvm-commits mailing list