[llvm] 619b888 - [AMDGPU] Fix "Sequence" spelling. NFC.

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 29 12:11:49 PDT 2021


Author: Stanislav Mekhanoshin
Date: 2021-03-29T12:11:36-07:00
New Revision: 619b88849e14315a03902e5b2646e57328c2afcf

URL: https://github.com/llvm/llvm-project/commit/619b88849e14315a03902e5b2646e57328c2afcf
DIFF: https://github.com/llvm/llvm-project/commit/619b88849e14315a03902e5b2646e57328c2afcf.diff

LOG: [AMDGPU] Fix "Sequence" spelling. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SIFoldOperands.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
index a0be4940acf9b..18d72528e2896 100644
--- a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
+++ b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
@@ -97,7 +97,7 @@ class SIFoldOperands : public MachineFunctionPass {
 
   std::pair<const MachineOperand *, int> isOMod(const MachineInstr &MI) const;
   bool tryFoldOMod(MachineInstr &MI);
-  bool tryFoldRegSeqence(MachineInstr &MI);
+  bool tryFoldRegSequence(MachineInstr &MI);
   bool tryFoldLCSSAPhi(MachineInstr &MI);
   bool tryFoldLoad(MachineInstr &MI);
 
@@ -489,7 +489,7 @@ static bool isUseSafeToFold(const SIInstrInfo *TII,
   //return !MI.hasRegisterImplicitUseOperand(UseMO.getReg());
 }
 
-// Find a def of the UseReg, check if it is a reg_seqence and find initializers
+// Find a def of the UseReg, check if it is a reg_sequence and find initializers
 // for each subreg, tracking it to foldable inline immediate if possible.
 // Returns true on success.
 static bool getRegSeqInit(
@@ -1528,7 +1528,7 @@ bool SIFoldOperands::tryFoldOMod(MachineInstr &MI) {
 
 // Try to fold a reg_sequence with vgpr output and agpr inputs into an
 // instruction which can take an agpr. So far that means a store.
-bool SIFoldOperands::tryFoldRegSeqence(MachineInstr &MI) {
+bool SIFoldOperands::tryFoldRegSequence(MachineInstr &MI) {
   assert(MI.isRegSequence());
   auto Reg = MI.getOperand(0).getReg();
 
@@ -1741,7 +1741,7 @@ bool SIFoldOperands::runOnMachineFunction(MachineFunction &MF) {
 
       tryFoldInst(TII, &MI);
 
-      if (MI.isRegSequence() && tryFoldRegSeqence(MI))
+      if (MI.isRegSequence() && tryFoldRegSequence(MI))
         continue;
 
       if (MI.isPHI() && tryFoldLCSSAPhi(MI))


        


More information about the llvm-commits mailing list