[llvm] r374253 - AMDGPU: Fix typos

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 15:44:47 PDT 2019


Author: arsenm
Date: Wed Oct  9 15:44:47 2019
New Revision: 374253

URL: http://llvm.org/viewvc/llvm-project?rev=374253&view=rev
Log:
AMDGPU: Fix typos

Modified:
    llvm/trunk/lib/Target/AMDGPU/SIFixSGPRCopies.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/SIFixSGPRCopies.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIFixSGPRCopies.cpp?rev=374253&r1=374252&r2=374253&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIFixSGPRCopies.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIFixSGPRCopies.cpp Wed Oct  9 15:44:47 2019
@@ -606,14 +606,14 @@ static bool hoistAndMergeSGPRInits(unsig
       auto MBB = MI->getParent();
       MachineInstr &BoundaryMI = *getFirstNonPrologue(MBB, TII);
       MachineBasicBlock::reverse_iterator B(BoundaryMI);
-      // Check if B should actually be a bondary. If not set the previous
+      // Check if B should actually be a boundary. If not set the previous
       // instruction as the boundary instead.
       if (!TII->isBasicBlockPrologue(*B))
         B++;
 
       auto R = std::next(MI->getReverseIterator());
       const unsigned Threshold = 50;
-      // Search until B or Threashold for a place to insert the initialization.
+      // Search until B or Threshold for a place to insert the initialization.
       for (unsigned I = 0; R != B && I < Threshold; ++R, ++I)
         if (R->readsRegister(Reg, TRI) || R->definesRegister(Reg, TRI) ||
             TII->isSchedulingBoundary(*R, MBB, *MBB->getParent()))




More information about the llvm-commits mailing list