diff options
| author | Diego Novillo <dnovillo@google.com> | 2015-11-23 20:12:21 +0000 |
|---|---|---|
| committer | Diego Novillo <dnovillo@google.com> | 2015-11-23 20:12:21 +0000 |
| commit | 243ea6a7d6d90eb52d3e30cb4a2b73d3fd428f88 (patch) | |
| tree | 62f4e5699b41bc549abb189383e73747b78736ef /llvm/test/Transforms/SampleProfile/cov-zero-samples.ll | |
| parent | 39f4c2ca3bd0d447202d05f2f83834e05193b76a (diff) | |
| download | bcm5719-llvm-243ea6a7d6d90eb52d3e30cb4a2b73d3fd428f88.tar.gz bcm5719-llvm-243ea6a7d6d90eb52d3e30cb4a2b73d3fd428f88.zip | |
SamplePGO - Add coverage tracking for samples.
The existing coverage tracker counts the number of records that were used
from the input profile. An alternative view of coverage is to check how
many available samples were applied.
This way, if the profile contains several records with few samples, it
doesn't really matter much that they were not applied. The more
interesting records to apply are the ones that contribute many samples.
llvm-svn: 253912
Diffstat (limited to 'llvm/test/Transforms/SampleProfile/cov-zero-samples.ll')
| -rw-r--r-- | llvm/test/Transforms/SampleProfile/cov-zero-samples.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/SampleProfile/cov-zero-samples.ll b/llvm/test/Transforms/SampleProfile/cov-zero-samples.ll index f7c5f82bb3e..d81e6438ee0 100644 --- a/llvm/test/Transforms/SampleProfile/cov-zero-samples.ll +++ b/llvm/test/Transforms/SampleProfile/cov-zero-samples.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/cov-zero-samples.prof -sample-profile-check-coverage=100 -pass-remarks=sample-profile -o /dev/null 2>&1 | FileCheck %s +; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/cov-zero-samples.prof -sample-profile-check-record-coverage=100 -pass-remarks=sample-profile -o /dev/null 2>&1 | FileCheck %s ; ; CHECK: remark: cov-zero-samples.cc:9:25: Applied 404065 samples from profile (offset: 2.1) ; CHECK: remark: cov-zero-samples.cc:10:9: Applied 443089 samples from profile (offset: 3) |

