[llvm] bee8e20 - [InstrProf][NFC] Fix a few typos in code comments.
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 15 12:55:39 PST 2021
Author: Snehasish Kumar
Date: 2021-11-15T12:55:25-08:00
New Revision: bee8e203c636ef6a5dfdf907e13721b61cc8ba9e
URL: https://github.com/llvm/llvm-project/commit/bee8e203c636ef6a5dfdf907e13721b61cc8ba9e
DIFF: https://github.com/llvm/llvm-project/commit/bee8e203c636ef6a5dfdf907e13721b61cc8ba9e.diff
LOG: [InstrProf][NFC] Fix a few typos in code comments.
Added:
Modified:
llvm/include/llvm/ProfileData/InstrProf.h
llvm/include/llvm/ProfileData/InstrProfReader.h
llvm/lib/ProfileData/ProfileSummaryBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/ProfileData/InstrProf.h b/llvm/include/llvm/ProfileData/InstrProf.h
index 28a35b8c835f9..4395c2abb33ee 100644
--- a/llvm/include/llvm/ProfileData/InstrProf.h
+++ b/llvm/include/llvm/ProfileData/InstrProf.h
@@ -205,9 +205,9 @@ StringRef getFuncNameWithoutPrefix(StringRef PGOFuncName,
StringRef FileName = "<unknown>");
/// Given a vector of strings (function PGO names) \c NameStrs, the
-/// method generates a combined string \c Result thatis ready to be
+/// method generates a combined string \c Result that is ready to be
/// serialized. The \c Result string is comprised of three fields:
-/// The first field is the legnth of the uncompressed strings, and the
+/// The first field is the length of the uncompressed strings, and the
/// the second field is the length of the zlib-compressed string.
/// Both fields are encoded in ULEB128. If \c doCompress is false, the
/// third field is the uncompressed strings; otherwise it is the
diff --git a/llvm/include/llvm/ProfileData/InstrProfReader.h b/llvm/include/llvm/ProfileData/InstrProfReader.h
index 17f0c59aa9ba9..b62d4ff044a35 100644
--- a/llvm/include/llvm/ProfileData/InstrProfReader.h
+++ b/llvm/include/llvm/ProfileData/InstrProfReader.h
@@ -205,7 +205,7 @@ class TextInstrProfReader : public InstrProfReader {
/// Reader for the raw instrprof binary format from runtime.
///
-/// This format is a raw memory dump of the instrumentation-baed profiling data
+/// This format is a raw memory dump of the instrumentation-based profiling data
/// from the runtime. It has no index.
///
/// Templated on the unsigned type whose size matches pointers on the platform
diff --git a/llvm/lib/ProfileData/ProfileSummaryBuilder.cpp b/llvm/lib/ProfileData/ProfileSummaryBuilder.cpp
index 49d1c39fda712..f54df7b295e3a 100644
--- a/llvm/lib/ProfileData/ProfileSummaryBuilder.cpp
+++ b/llvm/lib/ProfileData/ProfileSummaryBuilder.cpp
@@ -192,7 +192,7 @@ SampleProfileSummaryBuilder::computeSummaryForProfiles(
// into many copies each representing the CFG profile of a particular calling
// context. That makes the count distribution looks more flat as we now have
// more function profiles each with lower counts, which in turn leads to lower
- // hot thresholds. To compensate for that, by defauly we merge context
+ // hot thresholds. To compensate for that, by default we merge context
// profiles before computing profile summary.
if (UseContextLessSummary || (sampleprof::FunctionSamples::ProfileIsCS &&
!UseContextLessSummary.getNumOccurrences())) {
More information about the llvm-commits
mailing list