Under certain (currently unknown) conditions, llvm-profdata is outputting profiles that have two consecutive entries in the MemOPSize section for the value 0. This causes the PGOMemOPSizeOpt pass to output an invalid switch instruction with two cases for 0. As mentioned, we’re not quite sure what’s causing this to happen, but this patch prevents llvm-profdata from outputting a profile that has this problem and gives an error with a request for a reproducible. Differential Revision: https://reviews.llvm.org/D92074
48 lines
330 B
Plaintext
48 lines
330 B
Plaintext
# IR level Instrumentation Flag
|
|
:ir
|
|
foo
|
|
# Func Hash:
|
|
687116424982578944
|
|
# Num Counters:
|
|
3
|
|
# Counter Values:
|
|
523
|
|
20
|
|
1
|
|
# Num Value Kinds:
|
|
1
|
|
# ValueKind = IPVK_MemOPSize:
|
|
1
|
|
# NumValueSites:
|
|
3
|
|
9
|
|
0:99
|
|
0:88
|
|
3:77
|
|
9:72
|
|
4:66
|
|
5:55
|
|
6:44
|
|
7:33
|
|
8:22
|
|
9
|
|
7:33
|
|
2:88
|
|
9:72
|
|
4:66
|
|
1:99
|
|
5:55
|
|
6:44
|
|
3:77
|
|
8:22
|
|
9
|
|
7:33
|
|
2:88
|
|
9:72
|
|
4:66
|
|
1:99
|
|
5:55
|
|
6:44
|
|
3:77
|
|
8:22
|