[PATCH] D92621: [SampleFDO] Store fixed length MD5 in NameTable instead of using ULEB128 if MD5 is used.
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 3 20:57:05 PST 2020
hoy added inline comments.
================
Comment at: llvm/include/llvm/ProfileData/SampleProf.h:171
+ // accessed like an array.
+ SecFlagFixLengthMD5 = (1 << 1)
};
----------------
Nit: SecFlagFixedLengthMD5?
================
Comment at: llvm/lib/ProfileData/SampleProfWriter.cpp:177
- // Write out the name table.
+ // Write out the MD5 name table. We wrote unencoded MD5 so reader can
+ // retrieve the name using the name index without having to read the
----------------
I guess the writer does this unconditionally because we no longer want the variant encoding. The reader supports both for downwards compatibility?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92621/new/
https://reviews.llvm.org/D92621
More information about the llvm-commits
mailing list