aboutsummaryrefslogtreecommitdiff
path: root/bolt/lib/Passes/SplitFunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bolt/lib/Passes/SplitFunctions.cpp')
-rw-r--r--bolt/lib/Passes/SplitFunctions.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/bolt/lib/Passes/SplitFunctions.cpp b/bolt/lib/Passes/SplitFunctions.cpp
index eab669b..66a373a 100644
--- a/bolt/lib/Passes/SplitFunctions.cpp
+++ b/bolt/lib/Passes/SplitFunctions.cpp
@@ -386,7 +386,7 @@ private:
}
/// Compute sum of scores over jumps within \p BlockOrder given \p SplitIndex.
- /// Increament Score.LocalScore in place by the sum.
+ /// Increment Score.LocalScore in place by the sum.
void computeJumpScore(const BasicBlockOrder &BlockOrder,
const size_t SplitIndex, SplitScore &Score) {
@@ -413,7 +413,7 @@ private:
}
/// Compute sum of scores over calls originated in the current function
- /// given \p SplitIndex. Increament Score.LocalScore in place by the sum.
+ /// given \p SplitIndex. Increment Score.LocalScore in place by the sum.
void computeLocalCallScore(const BasicBlockOrder &BlockOrder,
const size_t SplitIndex, SplitScore &Score) {
if (opts::CallScale == 0)
@@ -455,7 +455,7 @@ private:
}
/// Compute sum of splitting scores for cover calls of the input function.
- /// Increament Score.CoverCallScore in place by the sum.
+ /// Increment Score.CoverCallScore in place by the sum.
void computeCoverCallScore(const BasicBlockOrder &BlockOrder,
const size_t SplitIndex,
const std::vector<CallInfo> &CoverCalls,
@@ -467,7 +467,7 @@ private:
assert(CI.Length >= Score.HotSizeReduction &&
"Length of cover calls must exceed reduced size of hot fragment.");
// Compute the new length of the call, which is shorter than the original
- // one by the size of the splitted fragment minus the total size increase.
+ // one by the size of the split fragment minus the total size increase.
const size_t NewCallLength = CI.Length - Score.HotSizeReduction;
Score.CoverCallScore += computeCallScore(CI.Count, NewCallLength);
}
@@ -502,12 +502,12 @@ private:
// First part of LocalScore is the sum over call edges originated in the
// input function. These edges can get shorter or longer depending on
- // SplitIndex. Score.LocalScore is increamented in place.
+ // SplitIndex. Score.LocalScore is incremented in place.
computeLocalCallScore(BlockOrder, SplitIndex, Score);
// Second part of LocalScore is the sum over jump edges with src basic block
// and dst basic block in the current function. Score.LocalScore is
- // increamented in place.
+ // incremented in place.
computeJumpScore(BlockOrder, SplitIndex, Score);
// Compute CoverCallScore and store in Score in place.