[llvm-commits] CVS: llvm-test/TEST.dsgraph.Makefile TEST.dsgraph.report
Chris Lattner
lattner at cs.uiuc.edu
Fri Mar 25 18:05:01 PST 2005
Changes in directory llvm-test:
TEST.dsgraph.Makefile updated: 1.16 -> 1.17
TEST.dsgraph.report updated: 1.13 -> 1.14
---
Log message:
Add information about type safety
---
Diffs of the changes: (+26 -1)
TEST.dsgraph.Makefile | 4 ++++
TEST.dsgraph.report | 23 ++++++++++++++++++++++-
2 files changed, 26 insertions(+), 1 deletion(-)
Index: llvm-test/TEST.dsgraph.Makefile
diff -u llvm-test/TEST.dsgraph.Makefile:1.16 llvm-test/TEST.dsgraph.Makefile:1.17
--- llvm-test/TEST.dsgraph.Makefile:1.16 Mon Mar 21 22:07:44 2005
+++ llvm-test/TEST.dsgraph.Makefile Fri Mar 25 20:04:44 2005
@@ -39,6 +39,10 @@
- at grep 'td.GlobalsGraph.dot' $@.time.1 >> $@
@echo -n "SCCSIZE: " >> $@
- at grep 'Maximum SCC Size in Call Graph' $@.time.1 >> $@
+ @echo -n "ACCESSES TYPED: " >> $@
+ - at grep 'Number of loads/stores which are fully typed' $@.time.1 >> $@
+ @echo -n "ACCESSES UNTYPED: " >> $@
+ - at grep 'Number of loads/stores which are untyped' $@.time.1 >> $@
@# Emit timing data.
@echo -n "TIME: " >> $@
- at grep ' Local Data Structure' $@.time.1 >> $@
Index: llvm-test/TEST.dsgraph.report
diff -u llvm-test/TEST.dsgraph.report:1.13 llvm-test/TEST.dsgraph.report:1.14
--- llvm-test/TEST.dsgraph.report:1.13 Fri Mar 25 14:28:21 2005
+++ llvm-test/TEST.dsgraph.report Fri Mar 25 20:04:44 2005
@@ -21,6 +21,20 @@
}
}
+sub TypeSafeRatio {
+ my ($Cols, $Col) = @_;
+ my $TS = $Cols->[$Col-2];
+ my $NTS = $Cols->[$Col-1];
+ $TS = 0 if ($TS eq "*");
+ $NTS = 0 if ($NTS eq "*");
+
+ if ($TS + NTS != 0) {
+ return sprintf("%4.1f%%", 100*$TS/($TS+$NTS+0.0));
+ } else {
+ return "n/a";
+ }
+}
+
sub FormatSize {
my $Size = shift;
if ($Size > 10*1024*1024) {
@@ -92,10 +106,13 @@
'povray' => 'povray31',
);
- at LatexColumns = (1, 2, 19, # LOC, #MemInstrs, MaxSCC
+ at LxxatexColumns = (1, 2, 19, # LOC, #MemInstrs, MaxSCC
15,16, # Total/Collapsed nodes
17, 18); # Max Size, GG Size
+ at LatexColumns = (2, 21, 22, 23); # Type safety numbers
+
+
# Specify how to format columns nicely for printing...
%LatexColumnFormat = (
# 11 => \&FormatSize,
@@ -139,5 +156,9 @@
["MaxSz" , '([0-9]+).*Maximum graph size'],
["GlobGr" , '\\.GlobalsGraph\\.dot\'... \\[([0-9+]+)\\]'],
["MaxSCC" , '([0-9]+).*Maximum SCC Size in Call Graph'],
+ [],
+ ["TypeSafe", "ACCESSES TYPED: *([0-9]+)"],
+ ["NonType", "ACCESSES UNTYPED: *([0-9]+)"],
+ ["TS %" , sub { return TypeSafeRatio(@_); }],
[]
);
More information about the llvm-commits
mailing list