Skip to content

Commit bee8e20

Browse files
committed
[InstrProf][NFC] Fix a few typos in code comments.
1 parent b828506 commit bee8e20

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

llvm/include/llvm/ProfileData/InstrProf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ StringRef getFuncNameWithoutPrefix(StringRef PGOFuncName,
205205
StringRef FileName = "<unknown>");
206206

207207
/// Given a vector of strings (function PGO names) \c NameStrs, the
208-
/// method generates a combined string \c Result thatis ready to be
208+
/// method generates a combined string \c Result that is ready to be
209209
/// serialized. The \c Result string is comprised of three fields:
210-
/// The first field is the legnth of the uncompressed strings, and the
210+
/// The first field is the length of the uncompressed strings, and the
211211
/// the second field is the length of the zlib-compressed string.
212212
/// Both fields are encoded in ULEB128. If \c doCompress is false, the
213213
/// third field is the uncompressed strings; otherwise it is the

llvm/include/llvm/ProfileData/InstrProfReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class TextInstrProfReader : public InstrProfReader {
205205

206206
/// Reader for the raw instrprof binary format from runtime.
207207
///
208-
/// This format is a raw memory dump of the instrumentation-baed profiling data
208+
/// This format is a raw memory dump of the instrumentation-based profiling data
209209
/// from the runtime. It has no index.
210210
///
211211
/// Templated on the unsigned type whose size matches pointers on the platform

llvm/lib/ProfileData/ProfileSummaryBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ SampleProfileSummaryBuilder::computeSummaryForProfiles(
192192
// into many copies each representing the CFG profile of a particular calling
193193
// context. That makes the count distribution looks more flat as we now have
194194
// more function profiles each with lower counts, which in turn leads to lower
195-
// hot thresholds. To compensate for that, by defauly we merge context
195+
// hot thresholds. To compensate for that, by default we merge context
196196
// profiles before computing profile summary.
197197
if (UseContextLessSummary || (sampleprof::FunctionSamples::ProfileIsCS &&
198198
!UseContextLessSummary.getNumOccurrences())) {

0 commit comments

Comments
 (0)