[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / tools / llvm-profdata / memprof-inline.test
blobdd842c054208311baabc8c22abb2d44c94634515
1 REQUIRES: x86_64-linux
3 To update the inputs used below run Inputs/update_memprof_inputs.sh /path/to/updated/clang
4 RUN: llvm-profdata show --memory %p/Inputs/inline.memprofraw --profiled-binary %p/Inputs/inline.memprofexe | FileCheck %s
6 CHECK:  MemprofProfile:
7 CHECK-NEXT:  Summary:
8 CHECK-NEXT:    Version: 3
9 CHECK-NEXT:    NumSegments: {{[0-9]+}}
10 CHECK-NEXT:    NumMibInfo: 2
11 CHECK-NEXT:    NumAllocFunctions: 2
12 CHECK-NEXT:    NumStackOffsets: 1
13 CHECK-NEXT:  Segments:
14 CHECK-NEXT:  -
15 CHECK-NEXT:    BuildId: {{[[:xdigit:]]+}}
16 CHECK-NEXT:    Start: 0x{{[[:xdigit:]]+}}
17 CHECK-NEXT:    End: 0x{{[[:xdigit:]]+}}
18 CHECK-NEXT:    Offset: 0x{{[[:xdigit:]]+}}
19 CHECK-NEXT:  -
21 CHECK:  Records:
22 CHECK-NEXT:  -
23 CHECK-NEXT:    FunctionGUID: 15505678318020221912
24 CHECK-NEXT:    AllocSites:
25 CHECK-NEXT:    -
26 CHECK-NEXT:      Callstack:
27 CHECK-NEXT:      -
28 CHECK-NEXT:        Function: 15505678318020221912
29 CHECK-NEXT:        SymbolName: qux
30 CHECK-NEXT:        LineOffset: 1
31 CHECK-NEXT:        Column: 15
32 CHECK-NEXT:        Inline: 1
33 CHECK-NEXT:      -
34 CHECK-NEXT:        Function: 6699318081062747564
35 CHECK-NEXT:        SymbolName: foo
36 CHECK-NEXT:        LineOffset: 0
37 CHECK-NEXT:        Column: 18
38 CHECK-NEXT:        Inline: 0
39 CHECK-NEXT:      -
40 CHECK-NEXT:        Function: 16434608426314478903
41 CHECK-NEXT:        SymbolName: bar
42 CHECK-NEXT:        LineOffset: 0
43 CHECK-NEXT:        Column: 19
44 CHECK-NEXT:        Inline: 0
45 CHECK-NEXT:      -
46 CHECK-NEXT:        Function: 15822663052811949562
47 CHECK-NEXT:        SymbolName: main
48 CHECK-NEXT:        LineOffset: 1
49 CHECK-NEXT:        Column: 3
50 CHECK-NEXT:        Inline: 0
51 CHECK-NEXT:      MemInfoBlock:
52 CHECK-NEXT:        AllocCount: 1
53 CHECK-NEXT:        TotalAccessCount: 1
54 CHECK-NEXT:        MinAccessCount: 1
55 CHECK-NEXT:        MaxAccessCount: 1
56 CHECK-NEXT:        TotalSize: 1
57 CHECK-NEXT:        MinSize: 1
58 CHECK-NEXT:        MaxSize: 1
59 CHECK-NEXT:        AllocTimestamp: {{[0-9]+}}
60 CHECK-NEXT:        DeallocTimestamp: {{[0-9]+}}
61 CHECK-NEXT:        TotalLifetime: 0
62 CHECK-NEXT:        MinLifetime: 0
63 CHECK-NEXT:        MaxLifetime: 0
64 CHECK-NEXT:        AllocCpuId: {{[0-9]+}}
65 CHECK-NEXT:        DeallocCpuId: {{[0-9]+}}
66 CHECK-NEXT:        NumMigratedCpu: 0
67 CHECK-NEXT:        NumLifetimeOverlaps: 0
68 CHECK-NEXT:        NumSameAllocCpu: 0
69 CHECK-NEXT:        NumSameDeallocCpu: 0
70 CHECK-NEXT:        DataTypeId: {{[0-9]+}}
71 CHECK-NEXT:        TotalAccessDensity: 100
72 CHECK-NEXT:        MinAccessDensity: 100
73 CHECK-NEXT:        MaxAccessDensity: 100
74 CHECK-NEXT:        TotalLifetimeAccessDensity: 100000
75 CHECK-NEXT:        MinLifetimeAccessDensity: 100000
76 CHECK-NEXT:        MaxLifetimeAccessDensity: 100000
77 CHECK-NEXT:  -
78 CHECK-NEXT:    FunctionGUID: 6699318081062747564
79 CHECK-NEXT:    AllocSites:
80 CHECK-NEXT:    -
81 CHECK-NEXT:      Callstack:
82 CHECK-NEXT:      -
83 CHECK-NEXT:        Function: 15505678318020221912
84 CHECK-NEXT:        SymbolName: qux
85 CHECK-NEXT:        LineOffset: 1
86 CHECK-NEXT:        Column: 15
87 CHECK-NEXT:        Inline: 1
88 CHECK-NEXT:      -
89 CHECK-NEXT:        Function: 6699318081062747564
90 CHECK-NEXT:        SymbolName: foo
91 CHECK-NEXT:        LineOffset: 0
92 CHECK-NEXT:        Column: 18
93 CHECK-NEXT:        Inline: 0
94 CHECK-NEXT:      -
95 CHECK-NEXT:        Function: 16434608426314478903
96 CHECK-NEXT:        SymbolName: bar
97 CHECK-NEXT:        LineOffset: 0
98 CHECK-NEXT:        Column: 19
99 CHECK-NEXT:        Inline: 0
100 CHECK-NEXT:      -
101 CHECK-NEXT:        Function: 15822663052811949562
102 CHECK-NEXT:        SymbolName: main
103 CHECK-NEXT:        LineOffset: 1
104 CHECK-NEXT:        Column: 3
105 CHECK-NEXT:        Inline: 0
106 CHECK-NEXT:      MemInfoBlock:
107 CHECK-NEXT:        AllocCount: 1
108 CHECK-NEXT:        TotalAccessCount: 1
109 CHECK-NEXT:        MinAccessCount: 1
110 CHECK-NEXT:        MaxAccessCount: 1
111 CHECK-NEXT:        TotalSize: 1
112 CHECK-NEXT:        MinSize: 1
113 CHECK-NEXT:        MaxSize: 1
114 CHECK-NEXT:        AllocTimestamp: {{[0-9]+}}
115 CHECK-NEXT:        DeallocTimestamp: {{[0-9]+}}
116 CHECK-NEXT:        TotalLifetime: 0
117 CHECK-NEXT:        MinLifetime: 0
118 CHECK-NEXT:        MaxLifetime: 0
119 CHECK-NEXT:        AllocCpuId: {{[0-9]+}}
120 CHECK-NEXT:        DeallocCpuId: {{[0-9]+}}
121 CHECK-NEXT:        NumMigratedCpu: 0
122 CHECK-NEXT:        NumLifetimeOverlaps: 0
123 CHECK-NEXT:        NumSameAllocCpu: 0
124 CHECK-NEXT:        NumSameDeallocCpu: 0
125 CHECK-NEXT:        DataTypeId: {{[0-9]+}}
126 CHECK-NEXT:        TotalAccessDensity: 100
127 CHECK-NEXT:        MinAccessDensity: 100
128 CHECK-NEXT:        MaxAccessDensity: 100
129 CHECK-NEXT:        TotalLifetimeAccessDensity: 100000
130 CHECK-NEXT:        MinLifetimeAccessDensity: 100000
131 CHECK-NEXT:        MaxLifetimeAccessDensity: 100000
132 CHECK-NEXT:    CallSites:
133 CHECK-NEXT:    -
134 CHECK-NEXT:      -
135 CHECK-NEXT:        Function: 15505678318020221912
136 CHECK-NEXT:        SymbolName: qux
137 CHECK-NEXT:        LineOffset: 1
138 CHECK-NEXT:        Column: 15
139 CHECK-NEXT:        Inline: 1
140 CHECK-NEXT:    -
141 CHECK-NEXT:      -
142 CHECK-NEXT:        Function: 6699318081062747564
143 CHECK-NEXT:        SymbolName: foo
144 CHECK-NEXT:        LineOffset: 0
145 CHECK-NEXT:        Column: 18
146 CHECK-NEXT:        Inline: 0
147 CHECK-NEXT:  -
148 CHECK-NEXT:    FunctionGUID: 16434608426314478903
149 CHECK-NEXT:    CallSites:
150 CHECK-NEXT:    -
151 CHECK-NEXT:      -
152 CHECK-NEXT:        Function: 16434608426314478903
153 CHECK-NEXT:        SymbolName: bar
154 CHECK-NEXT:        LineOffset: 0
155 CHECK-NEXT:        Column: 19
156 CHECK-NEXT:        Inline: 0
157 CHECK-NEXT:  -
158 CHECK-NEXT:    FunctionGUID: 15822663052811949562
159 CHECK-NEXT:    CallSites:
160 CHECK-NEXT:    -
161 CHECK-NEXT:      -
162 CHECK-NEXT:        Function: 15822663052811949562
163 CHECK-NEXT:        SymbolName: main
164 CHECK-NEXT:        LineOffset: 1
165 CHECK-NEXT:        Column: 3
166 CHECK-NEXT:        Inline: 0