mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
The patch tries to make sample profile loader independent of profile format change. It moves compact format related code into FunctionSamples and SampleProfileReader classes, and sample profile loader only has to interact with those two classes and will be unaware of profile format changes. The cleanup also contain some fixes to further remove the difference between compactbinary format and binary format. After the cleanup using different formats originated from the same profile will generate the same binaries, which we verified by compiling two large server benchmarks w/wo thinlto. Differential Revision: https://reviews.llvm.org/D51643 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341591 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
223 B
Plaintext
18 lines
223 B
Plaintext
test:3200:0
|
|
1: 100
|
|
2: 100
|
|
3: foo:1000
|
|
1: 800
|
|
3: bar:200
|
|
2: 190
|
|
4: baz:10
|
|
2: 10
|
|
4: foo1:1000
|
|
1: 1000
|
|
4: foo2:1000
|
|
1: 1000 foo3:1000
|
|
test_liveness:1000:0
|
|
1: foo:1000
|
|
1: foo_available:1000
|
|
2: 1000
|