Changes in directory llvm-test:

GenerateReport.pl updated: 1.29 -> 1.30
TEST.dsgraph.Makefile (r1.18) removed
TEST.dsgraph.gnuplot (r1.1) removed
TEST.dsgraph.report (r1.15) removed
TEST.dsprecision.Makefile (r1.3) removed
TEST.dsprecision.report (r1.5) removed
---
Log message:

numberic sort should not generate errors in perl, and remove dsa tests

---
Diffs of the changes:  (+4 -1)

 GenerateReport.pl |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm-test/GenerateReport.pl
diff -u llvm-test/GenerateReport.pl:1.29 llvm-test/GenerateReport.pl:1.30
--- llvm-test/GenerateReport.pl:1.29    Fri Nov  3 20:35:35 2006
+++ llvm-test/GenerateReport.pl Thu Apr 26 12:20:08 2007
@@ -185,7 +185,10 @@
 # Sort table now...
 #
 if ($SortNumeric) {
-  @Values = sort { $a->[$SortCol] <=> $b->[$SortCol] } @Values;
+  @Values = sort { $lhs = $a->[$SortCol]; $rhs = $b->[$SortCol];
+                   $lhs = 0 if ($lhs eq "*");
+                   $rhs = 0 if ($rhs eq "*");
+                   $lhs <=> $rhs } @Values;
 } else {
   @Values = sort { $a->[$SortCol] cmp $b->[$SortCol] } @Values;
 }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to