[ProfileSummary] Add partial profile annotation on IR.
authorWei Mi <wmi@google.com>
Tue, 21 Apr 2020 21:32:28 +0000 (14:32 -0700)
committerWei Mi <wmi@google.com>
Mon, 27 Apr 2020 15:34:15 +0000 (08:34 -0700)
commit10b57ca6900f9608b523b1a3c12d3cf1a3e6e158
treebebdbbf666f9e1ffb9b20234cef42217525b772e
parent18e96a31fe0214eb435e131e6ff585a899694576
[ProfileSummary] Add partial profile annotation on IR.

Profile and profile summary are usually read only once and then annotated
on IR. The profile summary metadata on IR should include the value of the
newly added partial profile flag, so that compilation phase like thinlto
postlink can get the full set of profile information.

Differential Revision: https://reviews.llvm.org/D78310
llvm/include/llvm/IR/ProfileSummary.h
llvm/lib/IR/ProfileSummary.cpp
llvm/test/Transforms/PGOProfile/cspgo_profile_summary.ll
llvm/test/Transforms/PGOProfile/unreachable_bb.ll
llvm/unittests/ProfileData/SampleProfTest.cpp