[AutoFDO]Merge called target in body samples when flattening profiles
authorMingming Liu <mingmingl@google.com>
Fri, 31 Mar 2023 04:55:41 +0000 (21:55 -0700)
committerMingming Liu <mingmingl@google.com>
Fri, 31 Mar 2023 20:24:59 +0000 (13:24 -0700)
commitf91b0f23c2f85361a9d20821ceadea770727425d
treed2282f6585fdb6d853708c8f7252071c9062acfe
parent74dee4791a2b3f17a49ea2f90ce3730f241f36ac
[AutoFDO]Merge called target in body samples when flattening profiles

- Body samples could have call targets, merge them as well.

Differential Revision: https://reviews.llvm.org/D147297
llvm/include/llvm/ProfileData/SampleProf.h
llvm/test/tools/llvm-profdata/Inputs/sample-flatten-profile.proftext
llvm/test/tools/llvm-profdata/sample-flatten-profile.test