[CSSPGO] Tweaking inlining with pseudo probes.
authorHongtao Yu <hoy@fb.com>
Mon, 1 Feb 2021 06:31:51 +0000 (22:31 -0800)
committerHongtao Yu <hoy@fb.com>
Mon, 1 Feb 2021 21:56:40 +0000 (13:56 -0800)
commit224fee8219bb3aed34f13ce40935e1b3ede90a0f
tree43f3113e2d05c98b26b2fb163acda519d76ec3e4
parent772eb24e00629faaae0244aa0d6d6204542c579b
[CSSPGO] Tweaking inlining with pseudo probes.

Fixing up a couple places where `getCallSiteIdentifier` is needed to support pseudo-probe-based callsites.

Also fixing an issue in the extbinary profile reader where the metadata section is not fully scanned based on the number of profiles loaded only for the current module.

Reviewed By: wmi, wenlei

Differential Revision: https://reviews.llvm.org/D95791
llvm/lib/ProfileData/SampleProfReader.cpp
llvm/lib/Transforms/IPO/SampleContextTracker.cpp
llvm/test/Transforms/SampleProfile/Inputs/pseudo-probe-inline.prof [new file with mode: 0644]
llvm/test/Transforms/SampleProfile/pseudo-probe-inline.ll [new file with mode: 0644]