aboutsummaryrefslogtreecommitdiff
path: root/TEST.llc.report
blob: 9c876c14304daa23327dcd2c89aeeb4d835f45db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
##=== TEST.llc.report - Report description for llc tests -------*- perl -*-===##
#
# This file defines a report to be generated for the llc test.
#
##===----------------------------------------------------------------------===##

# Sort by name
$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.
(
# Name
 ["Name:" , '\'([^\']+)\' Program'],
 [],
# Times
 ["Total"  , 'real ([0-9.]+)'],
 ["CodeGen", 'Total Execution Time: ([0-9.]+)'],
 ["InstSel", '([0-9.]+) \([^)]+\)[ 0-9A-Za-z]+Instruction Selection'],
 ["LiveVar", '([0-9.]+) \([^)]+\)[ 0-9A-Za-z]+Live Variable'],
 ["RA"     , '([0-9.]+) \([^)]+\)[ 0-9A-Za-z]+Register Allocator'],
 ["FPStack", '([0-9.]+) \([^)]+\)[ 0-9]+X86 FP Stackifier'],
 ["Peep"   , '([0-9.]+) \([^)]+\)[- 0-9]+X86 Peephole Optimizer'],
 [],
# Sizes
 ["#MCInsts", '([0-9]+).*Number of machine instrs printed'],
 ["#IntOrig", '([0-9]+).*Number of original intervals'],
 ["#IntCoal", '([0-9]+).*Number of intervals after coalescing'],
 [],
# Number of transformations
 ["#store" , '([0-9]+).*Number of stores added'],
 ["#load"  , '([0-9]+).*Number of loads added'],
 ["#fold"  , '([0-9]+).*Number of loads/stores folded into instructions'],
 ["#fp"    , '([0-9]+).*Number of floating point instructions'],
 ["#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],
 []
);