SamplePGO - Count sample records in embedded profiles when computing coverage.
authorDiego Novillo <dnovillo@google.com>
Sat, 31 Oct 2015 21:53:58 +0000 (21:53 +0000)
committerDiego Novillo <dnovillo@google.com>
Sat, 31 Oct 2015 21:53:58 +0000 (21:53 +0000)
commit012b206fd3503dbc1b2ff0bab99ef626665b16ff
treebf488087530c535c37cca0929b24e29da11ad9b9
parent76b8f7bc0efe92720ed2abf88efa158c3c8c3e13
SamplePGO - Count sample records in embedded profiles when computing coverage.

The initial coverage checking code for sample records failed to count
records inside inlined profiles. This change fixes the oversight.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251752 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SampleProfile.cpp
test/Transforms/SampleProfile/Inputs/inline-coverage.prof [new file with mode: 0644]
test/Transforms/SampleProfile/inline-coverage.ll [new file with mode: 0644]