Skip to content

Commit e2d539b

Browse files
[memprof] Fix comment typos (NFC)
1 parent 3aa41e0 commit e2d539b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

llvm/include/llvm/ProfileData/MemProf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ computeFrameHistogram(llvm::MapVector<CallStackId, llvm::SmallVector<FrameId>>
988988
//
989989
// The radix tree allows us to reconstruct call stacks in the leaf-to-root
990990
// order as we scan the array from left ro right while following pointers to
991-
// parents along the way
991+
// parents along the way.
992992
//
993993
// For example, if we are decoding CallStackId 2, we start a forward traversal
994994
// at Index 7, noting the call stack length of 4 and obtaining f5 and f4. When

llvm/lib/ProfileData/MemProf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ Expected<MemProfSchema> readMemProfSchema(const unsigned char *&Buffer) {
394394
}
395395
Result.push_back(static_cast<Meta>(Tag));
396396
}
397-
// Advace the buffer to one past the schema if we succeeded.
397+
// Advance the buffer to one past the schema if we succeeded.
398398
Buffer = Ptr;
399399
return Result;
400400
}

llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,13 +568,13 @@ class CallsiteContextGraph {
568568
/// unioning their recorded alloc types.
569569
uint8_t computeAllocType(DenseSet<uint32_t> &ContextIds);
570570

571-
/// Returns the alloction type of the intersection of the contexts of two
571+
/// Returns the allocation type of the intersection of the contexts of two
572572
/// nodes (based on their provided context id sets), optimized for the case
573573
/// when Node1Ids is smaller than Node2Ids.
574574
uint8_t intersectAllocTypesImpl(const DenseSet<uint32_t> &Node1Ids,
575575
const DenseSet<uint32_t> &Node2Ids);
576576

577-
/// Returns the alloction type of the intersection of the contexts of two
577+
/// Returns the allocation type of the intersection of the contexts of two
578578
/// nodes (based on their provided context id sets).
579579
uint8_t intersectAllocTypes(const DenseSet<uint32_t> &Node1Ids,
580580
const DenseSet<uint32_t> &Node2Ids);

llvm/lib/Transforms/Instrumentation/MemProfiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ readMemprof(Module &M, Function &F, IndexedInstrProfReader *MemProfReader,
839839
};
840840

841841
// Now walk the instructions, looking up the associated profile data using
842-
// dbug locations.
842+
// debug locations.
843843
for (auto &BB : F) {
844844
for (auto &I : BB) {
845845
if (I.isDebugOrPseudoInst())
@@ -937,7 +937,7 @@ readMemprof(Module &M, Function &F, IndexedInstrProfReader *MemProfReader,
937937
// Add callsite metadata for the instruction's location list so that
938938
// it simpler later on to identify which part of the MIB contexts
939939
// are from this particular instruction (including during inlining,
940-
// when the callsite metdata will be updated appropriately).
940+
// when the callsite metadata will be updated appropriately).
941941
// FIXME: can this be changed to strip out the matching stack
942942
// context ids from the MIB contexts and not add any callsite
943943
// metadata here to save space?

0 commit comments

Comments
 (0)