For branch sample, we don't need add total sample count since it's included in the range sample.
For the inferred sample count, we should accumulate its caller's body sample count.
| Paths 
 |  Differential  D95009  
[llvm-profgen][NFC] Fix the incorrect computation of callsite sample count ClosedPublic Authored by wlei on Jan 19 2021, 4:20 PM. 
Details Summary For branch sample, we don't need add total sample count since it's included in the range sample. For the inferred sample count, we should accumulate its caller's body sample count. 
Diff Detail 
 Event Timeline
 
 This revision is now accepted and ready to land.Jan 19 2021, 5:35 PM This revision was landed with ongoing or failed builds.Jan 19 2021, 6:11 PM Closed by commit rGdaeea961a6d9: [llvm-profgen][NFC] Fix the incorrect computation of callsite sample count (authored by wlei).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 317739 llvm/test/tools/llvm-profgen/noinline-cs-noprobe.test
 llvm/tools/llvm-profgen/ProfileGenerator.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
What is this check?