This patch emits "instr_prof_hash_mismatch" function annotation metadata if there is a hash mismatch while applying instrumented profiles. During the PGO optimized build using instrumented profiles, if the CFG of the function has changed since generating the profile, a hash mismatch is encountered. This patch emits this information as annotation metadata. We plan to use this with Propeller which is done at the machine IR level. Propeller is usually applied on top of PGO and a hash mismatch during PGO could be used to detect source drift. Differential Revision: https://reviews.llvm.org/D95495
18 lines
144 B
Plaintext
18 lines
144 B
Plaintext
:ir
|
|
:entry_first
|
|
foo
|
|
# Func Hash:
|
|
11111
|
|
# Num Counters:
|
|
1
|
|
# Counter Values:
|
|
100
|
|
|
|
bar
|
|
# Func Hash:
|
|
11111
|
|
# Num Counters:
|
|
1
|
|
# Counter Values:
|
|
100
|