Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InstrProf: Read raw binary profile in llvm-profdata
Read a raw binary profile that corresponds to a memory dump from the runtime profile. The test is a binary file generated from cfe/trunk/test/Profile/c-general.c with the new compiler-rt runtime and the matching text version of the input. It includes instructions on how to regenerate. <rdar://problem/15950346> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204496 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
c61e1f5
commit ddfcb21
Showing
5 changed files
with
339 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
150 changes: 150 additions & 0 deletions
150
test/tools/llvm-profdata/Inputs/binary-compare.profdata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
simple_loops | ||
4 | ||
4 | ||
1 | ||
100 | ||
100 | ||
75 | ||
|
||
conditionals | ||
11 | ||
11 | ||
1 | ||
100 | ||
50 | ||
50 | ||
33 | ||
33 | ||
16 | ||
99 | ||
100 | ||
99 | ||
100 | ||
|
||
early_exits | ||
9 | ||
9 | ||
1 | ||
0 | ||
51 | ||
1 | ||
25 | ||
1 | ||
25 | ||
1 | ||
0 | ||
|
||
jumps | ||
22 | ||
22 | ||
1 | ||
1 | ||
0 | ||
1 | ||
0 | ||
0 | ||
1 | ||
0 | ||
1 | ||
2 | ||
3 | ||
2 | ||
0 | ||
3 | ||
0 | ||
1 | ||
1 | ||
1 | ||
10 | ||
0 | ||
10 | ||
9 | ||
|
||
switches | ||
19 | ||
19 | ||
1 | ||
1 | ||
1 | ||
15 | ||
7 | ||
1 | ||
0 | ||
2 | ||
2 | ||
3 | ||
3 | ||
4 | ||
4 | ||
0 | ||
4 | ||
4 | ||
5 | ||
1 | ||
0 | ||
|
||
big_switch | ||
17 | ||
17 | ||
1 | ||
32 | ||
32 | ||
1 | ||
0 | ||
1 | ||
1 | ||
11 | ||
11 | ||
1 | ||
1 | ||
15 | ||
15 | ||
1 | ||
1 | ||
2 | ||
2 | ||
|
||
boolean_operators | ||
8 | ||
8 | ||
1 | ||
100 | ||
34 | ||
66 | ||
17 | ||
34 | ||
33 | ||
50 | ||
|
||
boolop_loops | ||
9 | ||
9 | ||
1 | ||
50 | ||
51 | ||
50 | ||
26 | ||
50 | ||
51 | ||
50 | ||
26 | ||
|
||
do_fallthrough | ||
4 | ||
4 | ||
1 | ||
10 | ||
2 | ||
8 | ||
|
||
main | ||
1 | ||
1 | ||
1 | ||
|
||
c-general.c:static_func | ||
2 | ||
2 | ||
1 | ||
10 | ||
|
Binary file not shown.
Oops, something went wrong.