[llvm-commits] CVS: llvm/test/Programs/TEST.llc.report

Alkis Evlogimenos alkis at cs.uiuc.edu
Mon Mar 29 13:43:46 PST 2004


Changes in directory llvm/test/Programs:

TEST.llc.report updated: 1.9 -> 1.10

---
Log message:

Use newly added helper function


---
Diffs of the changes:  (+2 -12)

Index: llvm/test/Programs/TEST.llc.report
diff -u llvm/test/Programs/TEST.llc.report:1.9 llvm/test/Programs/TEST.llc.report:1.10
--- llvm/test/Programs/TEST.llc.report:1.9	Mon Feb 23 12:45:32 2004
+++ llvm/test/Programs/TEST.llc.report	Mon Mar 29 10:58:38 2004
@@ -8,16 +8,6 @@
 $SortCol = 1;
 $TrimRepeatedPrefix = 1;
 
-sub TotalInstrEliminations {
-  my ($Cols, $Col) = @_;
-  $iMov = $Cols->[$Col-2];
-  $peep = $Cols->[$Col-1];
-  if ($iMov eq "*") { $iMov = 0; }
-  if ($peep eq "*") { $peep = 0; }
-
-  return $iMov + $peep;
-}
-
 # These are the columns for the report.  The first entry is the header for the
 # column, the second is the regex to use to match the value.  Empty list create
 # seperators, and closures may be put in for custom processing.
@@ -48,6 +38,6 @@
  ["#fxch"  , '([0-9]+).*Number of fxch instructions inserted'],
  ["#i-mov" , '([0-9]+).*Number of identity moves eliminated'],
  ["#peep"  , '([0-9]+).*Number of peephole optimization performed'],
- ["#tot-el", \&TotalInstrEliminations],
+ ["#tot-el", sub { return AddColumns(@_,-1,-2); }],
  []
-);
+ );





More information about the llvm-commits mailing list