Skip to content

Commit 384d082

Browse files
Revise a comment.
1 parent 97e7802 commit 384d082

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/ProfileData/InstrProfReader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,9 @@ Error IndexedMemProfReader::deserializeV3(const unsigned char *Start,
13031303
FrameBase = Ptr;
13041304
CallStackBase = Start + CallStackPayloadOffset;
13051305

1306-
// Compute the number of elements in the radix tree array.
1306+
// Compute the number of elements in the radix tree array. Since we use this
1307+
// to reserve enough bits in a BitVector, it's totally OK if we overestimate
1308+
// this number a little bit because of padding just before the next section.
13071309
RadixTreeSize = (RecordPayloadOffset - CallStackPayloadOffset) /
13081310
sizeof(memprof::LinearFrameId);
13091311

0 commit comments

Comments
 (0)