mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
ddc5a010a4
Introducing llvm-profdata, a tool for merging profile data generated by PGO instrumentation in clang. - The name indicates a file extension of <name>.profdata. Eventually profile data output by clang should be changed to that extension. - llvm-profdata merges two profiles. However, the name is more general, since it will likely pick up more tasks (such as summarizing a single profile). - llvm-profdata parses the current text-based format, but will be updated once we settle on a binary format. <rdar://problem/15949645> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201535 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
1.0 KiB
Plaintext
26 lines
1.0 KiB
Plaintext
RUN: llvm-profdata %p/Inputs/foo3-1.profdata %p/Inputs/foo3-2.profdata 2>&1 | FileCheck %s --check-prefix=FOO3
|
|
RUN: llvm-profdata %p/Inputs/foo3-2.profdata %p/Inputs/foo3-1.profdata 2>&1 | FileCheck %s --check-prefix=FOO3
|
|
FOO3: {{^foo 3$}}
|
|
FOO3-NEXT: {{^8$}}
|
|
FOO3-NEXT: {{^7$}}
|
|
FOO3-NEXT: {{^6$}}
|
|
|
|
RUN: llvm-profdata %p/Inputs/foo4-1.profdata %p/Inputs/foo4-2.profdata 2>&1 | FileCheck %s --check-prefix=FOO4
|
|
RUN: llvm-profdata %p/Inputs/foo4-2.profdata %p/Inputs/foo4-1.profdata 2>&1 | FileCheck %s --check-prefix=FOO4
|
|
FOO4: {{^foo 4$}}
|
|
FOO4-NEXT: {{^18$}}
|
|
FOO4-NEXT: {{^28$}}
|
|
FOO4-NEXT: {{^38$}}
|
|
FOO4-NEXT: {{^48$}}
|
|
|
|
RUN: llvm-profdata %p/Inputs/foo3bar3-1.profdata %p/Inputs/foo3bar3-2.profdata 2>&1 | FileCheck %s --check-prefix=FOO3BAR3
|
|
RUN: llvm-profdata %p/Inputs/foo3bar3-2.profdata %p/Inputs/foo3bar3-1.profdata 2>&1 | FileCheck %s --check-prefix=FOO3BAR3
|
|
FOO3BAR3: {{^foo 3$}}
|
|
FOO3BAR3-NEXT: {{^19$}}
|
|
FOO3BAR3-NEXT: {{^22$}}
|
|
FOO3BAR3-NEXT: {{^28$}}
|
|
FOO3BAR3: {{^bar 3$}}
|
|
FOO3BAR3-NEXT: {{^36$}}
|
|
FOO3BAR3-NEXT: {{^42$}}
|
|
FOO3BAR3-NEXT: {{^50$}}
|