[llvm-commits] CVS: llvm-test/TEST.nightly.report
Chris Lattner
lattner at cs.uiuc.edu
Tue Apr 5 11:52:03 PDT 2005
Changes in directory llvm-test:
TEST.nightly.report updated: 1.35 -> 1.36
---
Log message:
If either of the program runs takes < 0.1s, don't bother printing a ratio.
---
Diffs of the changes: (+9 -15)
TEST.nightly.report | 24 +++++++++---------------
1 files changed, 9 insertions(+), 15 deletions(-)
Index: llvm-test/TEST.nightly.report
diff -u llvm-test/TEST.nightly.report:1.35 llvm-test/TEST.nightly.report:1.36
--- llvm-test/TEST.nightly.report:1.35 Sat Jan 8 15:03:37 2005
+++ llvm-test/TEST.nightly.report Tue Apr 5 13:51:46 2005
@@ -24,33 +24,27 @@
my ($Cols, $Col) = @_;
my $GCC = $Cols->[$Col-5];
my $CBE = $Cols->[$Col-4];
- if ($GCC ne "*" and $CBE ne "*" and $CBE != "0") {
- return sprintf("%3.2f", $GCC/$CBE);
- } else {
- return "n/a";
- }
+ return "n/a" if ($GCC eq "*" or $CBE eq "*");
+ return sprintf("%3.2f", $GCC/$CBE) if ($GCC >= 0.1 and $CBE >= 0.1);
+ return "-";
}
sub GCCLLCRatio {
my ($Cols, $Col) = @_;
my $GCC = $Cols->[$Col-6];
my $LLC = $Cols->[$Col-4];
- if ($GCC ne "*" and $LLC ne "*" and $LLC != "0") {
- return sprintf("%3.2f", $GCC/$LLC);
- } else {
- return "n/a";
- }
+ return "n/a" if ($GCC eq "*" or $LLC eq "*");
+ return sprintf("%3.2f", $GCC/$LLC) if ($GCC >= 0.1 and $LLC >= 0.1);
+ return "-";
}
sub GCCLLC_BETARatio {
my ($Cols, $Col) = @_;
my $GCC = $Cols->[$Col-7];
my $LLC_BETA = $Cols->[$Col-4];
- if ($GCC ne "*" and $LLC_BETA ne "*" and $LLC_BETA != "0") {
- return sprintf("%3.2f", $GCC/$LLC_BETA);
- } else {
- return "n/a";
- }
+ return "n/a" if ($GCC eq "*" or $LLC_BETA eq "*");
+ return sprintf("%3.2f", $GCC/$LLC_BETA) if ($GCC >= 0.1 and $LLC_BETA >= 0.1);
+ return "-";
}
# These are the columns for the report. The first entry is the header for the
More information about the llvm-commits
mailing list