mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-28 15:58:57 -04:00

This adds the flag -mllvm -sample-profile-check-coverage=N to the SampleProfile pass. N is the percent of input sample records that the user expects to apply. If the pass does not use N% (or more) of the sample records in the input, it emits a warning. This is useful to detect some forms of stale profiles. If the code has drifted enough from the original profile, there will be records that do not match the IR anymore. This will not detect cases where a sample profile record for line L is referring to some other instructions that also used to be at line L. llvm-svn: 251568
6 lines
114 B
Plaintext
6 lines
114 B
Plaintext
foo:30000:100
|
|
2: 28000
|
|
3: 1000
|
|
# This profile is stale. Function foo() does not have a line 8 anymore.
|
|
8: 1700
|