llvm/test/Transforms/SampleProfile/Inputs/cov-zero-samples.prof
Diego Novillo ddec40be2c SamplePGO - Do not count never-executed inlined functions when computing coverage.
If a function was originally inlined but not actually hot at runtime,
its samples will not be counted inside the parent function. This throws
off the coverage calculation because it expects to find more used
records than it should.

Fixed by ignoring functions that will not be inlined into the parent.
Currently, this is inlined functions with 0 samples.  In subsequent
patches, I'll change this to mean "cold" functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253716 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-20 21:46:38 +00:00

11 lines
111 B
Plaintext

main:20111403:0
2.1: 404065
3: 443089
3.1: 0
4: 404066
6: 0
7: 0
3.1: _Z12never_calledi:0
0: 0
1: 0