diff --git a/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp b/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp index 5ef907b8831555..9eddb8626f602b 100644 --- a/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp +++ b/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp @@ -107,7 +107,7 @@ rescheduleLexographically(std::vector instructions, II->print(OS); OS.flush(); - // Trim the assignment, or start from the begining in the case of a store. + // Trim the assignment, or start from the beginning in the case of a store. const size_t i = S.find("="); StringInstrMap.push_back({(i == std::string::npos) ? S : S.substr(i), II}); } @@ -138,7 +138,7 @@ static bool rescheduleCanonically(unsigned &PseudoIdempotentInstCount, bool Changed = false; - // Calculates the distance of MI from the begining of its parent BB. + // Calculates the distance of MI from the beginning of its parent BB. auto getInstrIdx = [](const MachineInstr &MI) { unsigned i = 0; for (auto &CurMI : *MI.getParent()) { diff --git a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp index 84ff674569cdd5..155d19ba6959a8 100644 --- a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp +++ b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp @@ -96,7 +96,7 @@ static cl::opt MipsCompactBranchPolicy( cl::values(clEnumValN(CB_Never, "never", "Do not use compact branches if possible."), clEnumValN(CB_Optimal, "optimal", - "Use compact branches where appropiate (default)."), + "Use compact branches where appropriate (default)."), clEnumValN(CB_Always, "always", "Always use compact branches if possible.")));