[PATCH] D148868: [llvm-profdata] ProfileReader cleanup - preparation for MD5 refactoring

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 3 11:14:07 PDT 2023


davidxl added inline comments.


================
Comment at: llvm/lib/ProfileData/SampleProfReader.cpp:539
+    using namespace support;
+    uint64_t FID = endian::read<uint64_t, little, unaligned>(
+       MD5NameMemStart + (*Idx) * sizeof(uint64_t));
----------------
Add a comment here referencing readUnencodedNumber and mention bounds check is not needed.


================
Comment at: llvm/lib/ProfileData/SampleProfReader.cpp:714
   case SecNameTable: {
-    FixedLengthMD5 =
+    bool FixedLengthMD5 =
         hasSecFlag(Entry, SecNameTableFlags::SecFlagFixedLengthMD5);
----------------
Is this flag still used or can be asserted to be true?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148868/new/

https://reviews.llvm.org/D148868



More information about the llvm-commits mailing list