]> granicus.if.org Git - llvm/commitdiff
Fix typos
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 8 Jan 2019 01:25:47 +0000 (01:25 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 8 Jan 2019 01:25:47 +0000 (01:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350597 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/GlobalISel/RegBankSelect.cpp

index bfd7a68a8b061ab11cbe075aa7b20603493e846a..b1e371dacd2ae63493542c8f628009e6a8aabe91 100644 (file)
@@ -115,7 +115,7 @@ bool RegBankSelect::assignmentMatch(
   // By default we assume we will have to repair something.
   OnlyAssign = false;
   // Each part of a break down needs to end up in a different register.
-  // In other word, Reg assignement does not match.
+  // In other word, Reg assignment does not match.
   if (ValMapping.NumBreakDowns != 1)
     return false;
 
@@ -528,7 +528,7 @@ RegBankSelect::MappingCost RegBankSelect::computeMapping(
 bool RegBankSelect::applyMapping(
     MachineInstr &MI, const RegisterBankInfo::InstructionMapping &InstrMapping,
     SmallVectorImpl<RegBankSelect::RepairingPlacement> &RepairPts) {
-  // OpdMapper will hold all the information needed for the rewritting.
+  // OpdMapper will hold all the information needed for the rewriting.
   RegisterBankInfo::OperandsMapper OpdMapper(MI, InstrMapping, *MRI);
 
   // First, place the repairing code.