[PATCH] D148188: [llvm-profdata] Make profile reader behavior consistent when encountering malformed profiles
William Junda Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 14 16:49:31 PDT 2023
huangjd added inline comments.
================
Comment at: llvm/lib/ProfileData/SampleProfReader.cpp:745
+ bool FixedLengthMD5 =
hasSecFlag(Entry, SecNameTableFlags::SecFlagFixedLengthMD5);
+ bool UseMD5 =
----------------
davidxl wrote:
> why changing FixedLengthMD5 into a local variable?
The profile reader does not need to keep this info. It only matters while reading the section. In the future we plan to support having multiple name tables possibly with different flags set, so the reader should minimize keeping any states as a result of reading a section.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148188/new/
https://reviews.llvm.org/D148188
More information about the llvm-commits
mailing list