aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/SampleProf.cpp
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2020-03-03 13:19:32 -0800
committerWei Mi <wmi@google.com>2020-03-30 22:07:08 -0700
commitebad678857a94c32ce7b6931e9c642b32d278b67 (patch)
treef275e60b1d1eafc3b4f463eaec8cf0cb31cda986 /llvm/lib/ProfileData/SampleProf.cpp
parent1e8900cc828bd62fdcc314283c991080bae4520c (diff)
downloadllvm-ebad678857a94c32ce7b6931e9c642b32d278b67.zip
llvm-ebad678857a94c32ce7b6931e9c642b32d278b67.tar.gz
llvm-ebad678857a94c32ce7b6931e9c642b32d278b67.tar.bz2
[SampleFDO] Port MD5 name table support to extbinary format.
Compbinary format uses MD5 to represent strings in name table. That gives smaller profile without the need of compression/decompression when writing/reading the profile. The patch adds the support in extbinary format. It is off by default but user can choose to enable it. Note the feature of using MD5 in name table can bring very small chance of name conflict leading to profile mismatch. Besides, profile using the feature won't have the profile remapping support. Differential Revision: https://reviews.llvm.org/D76255
Diffstat (limited to 'llvm/lib/ProfileData/SampleProf.cpp')
-rw-r--r--llvm/lib/ProfileData/SampleProf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ProfileData/SampleProf.cpp b/llvm/lib/ProfileData/SampleProf.cpp
index 003e8d4..e5d0fdb 100644
--- a/llvm/lib/ProfileData/SampleProf.cpp
+++ b/llvm/lib/ProfileData/SampleProf.cpp
@@ -30,6 +30,7 @@ using namespace sampleprof;
namespace llvm {
namespace sampleprof {
SampleProfileFormat FunctionSamples::Format;
+bool FunctionSamples::UseMD5;
} // namespace sampleprof
} // namespace llvm