From 55aa002c4ac254d02aa8c254399744642c714192 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 9 Oct 2019 22:44:47 +0000 Subject: [PATCH] AMDGPU: Fix typos git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374253 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AMDGPU/SIFixSGPRCopies.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/AMDGPU/SIFixSGPRCopies.cpp b/lib/Target/AMDGPU/SIFixSGPRCopies.cpp index dad9fedff25..93df7f3e49b 100644 --- a/lib/Target/AMDGPU/SIFixSGPRCopies.cpp +++ b/lib/Target/AMDGPU/SIFixSGPRCopies.cpp @@ -606,14 +606,14 @@ static bool hoistAndMergeSGPRInits(unsigned Reg, 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())) -- 2.40.0