SamplePGO - Add line offset and discriminator information to sample reports.
authorDiego Novillo <dnovillo@google.com>
Fri, 20 Nov 2015 15:39:42 +0000 (15:39 +0000)
committerDiego Novillo <dnovillo@google.com>
Fri, 20 Nov 2015 15:39:42 +0000 (15:39 +0000)
commitc6b24c2806aa07c6b0dcba478314d5c5a24ced34
tree52e90071e68e10915027091f8a891b0a29d13e0a
parent086ed798ff99f87ddf63184138d5797382c9a0f6
SamplePGO - Add line offset and discriminator information to sample reports.

While debugging some sampling coverage problems, I found this useful:
When applying samples from a profile, it helps to also know what line
offset and discriminator the sample belongs to. This makes it easy to
correlate against the input profile.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253670 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SampleProfile.cpp
test/Transforms/SampleProfile/inline-coverage.ll