diff --git a/llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h b/llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h --- a/llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h +++ b/llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h @@ -249,7 +249,7 @@ Instruction *getIVIncOperand(Instruction *IncV, Instruction *InsertPos, bool allowScale); - /// Utility for hoisting \p IncV (with all subexpressions requried for its + /// Utility for hoisting \p IncV (with all subexpressions required for its /// computation) before \p InsertPos. If \p RecomputePoisonFlags is set, drops /// all poison-generating flags from instructions being hoisted and tries to /// re-infer them in the new location. It should be used when we are going to diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -6272,7 +6272,7 @@ bool createIterCountExpr(const SCEV *S, const SCEVDbgValueBuilder &IterationCount, ScalarEvolution &SE) { - // SCEVs for SSA values are most frquently of the form + // SCEVs for SSA values are most frequently of the form // {start,+,stride}, but sometimes they are ({start,+,stride} + %a + ..). // This is because %a is a PHI node that is not the IV. However, these // SCEVs have not been observed to result in debuginfo-lossy optimisations,