summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/TargetParser.cpp
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2015-10-28 22:30:25 +0000
committerDiego Novillo <dnovillo@google.com>2015-10-28 22:30:25 +0000
commit748b3ffe3b8d83e2405e41c572cc19bc9f211053 (patch)
tree01fb113e6fc6d513589714e71d57740bf46d2d51 /llvm/lib/Support/TargetParser.cpp
parent11a17198e0396ac11d8034cf9d88e3c4c5c4e1f6 (diff)
downloadbcm5719-llvm-748b3ffe3b8d83e2405e41c572cc19bc9f211053.tar.gz
bcm5719-llvm-748b3ffe3b8d83e2405e41c572cc19bc9f211053.zip
SamplePGO - Add flag to check sampling coverage.
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
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud