]> granicus.if.org Git - llvm/commit
[PGO] Context sensitive PGO (part 2)
authorRong Xu <xur@google.com>
Thu, 28 Feb 2019 19:55:07 +0000 (19:55 +0000)
committerRong Xu <xur@google.com>
Thu, 28 Feb 2019 19:55:07 +0000 (19:55 +0000)
commit5af7fe31f4c67898c9dddefdf4a6b91665b76acd
tree4a9c0f8c1d44fd49c89a8f85175679e163f274f2
parent014b2ad7192422fc845d5256e314586ccca2f0a3
[PGO] Context sensitive PGO (part 2)

Part 2 of CSPGO changes (mostly related to ProfileSummary).
Note that I use a default parameter in setProfileSummary() and getSummary().
This is to break the dependency in clang. I will make the parameter explicit
after changing clang in a separated patch.

Differential Revision: https://reviews.llvm.org/D54175

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355131 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
docs/CommandGuide/llvm-profdata.rst
include/llvm/Analysis/ProfileSummaryInfo.h
include/llvm/IR/Module.h
include/llvm/IR/ProfileSummary.h
include/llvm/ProfileData/InstrProfReader.h
include/llvm/ProfileData/InstrProfWriter.h
lib/Analysis/ProfileSummaryInfo.cpp
lib/IR/Module.cpp
lib/IR/ProfileSummary.cpp
lib/ProfileData/InstrProfReader.cpp
lib/ProfileData/InstrProfWriter.cpp
lib/Transforms/IPO/HotColdSplitting.cpp
lib/Transforms/IPO/SampleProfile.cpp
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
tools/llvm-profdata/llvm-profdata.cpp
unittests/ProfileData/InstrProfTest.cpp
unittests/ProfileData/SampleProfTest.cpp