[llvm] 0d25418 - [NFC] Fix incorrect comment in VLIW packetizer

Ben Shi via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 05:19:20 PST 2023


Author: Ben Shi
Date: 2023-03-01T21:19:06+08:00
New Revision: 0d2541827322a62bdf75ffb6240041843a9013f6

URL: https://github.com/llvm/llvm-project/commit/0d2541827322a62bdf75ffb6240041843a9013f6
DIFF: https://github.com/llvm/llvm-project/commit/0d2541827322a62bdf75ffb6240041843a9013f6.diff

LOG: [NFC] Fix incorrect comment in VLIW packetizer

Reviewed By: bcain

Differential Revision: https://reviews.llvm.org/D145050

Added: 
    

Modified: 
    llvm/lib/CodeGen/DFAPacketizer.cpp
    llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/DFAPacketizer.cpp b/llvm/lib/CodeGen/DFAPacketizer.cpp
index cf02918b9376f..02ed6f9ea3b9f 100644
--- a/llvm/lib/CodeGen/DFAPacketizer.cpp
+++ b/llvm/lib/CodeGen/DFAPacketizer.cpp
@@ -234,7 +234,7 @@ void VLIWPacketizerList::PacketizeMIs(MachineBasicBlock *MBB,
                     "added to packet\n  "
                  << MI);
       // End the packet if resource is not available, or if the instruction
-      // shoud not be added to the current packet.
+      // should not be added to the current packet.
       endPacket(MBB, MI);
     }
 

diff  --git a/llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp b/llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
index df4b14b70f255..e38c8bacaf2ba 100644
--- a/llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
@@ -1318,7 +1318,7 @@ bool HexagonPacketizerList::hasDualStoreDependence(const MachineInstr &I,
   return (StoreJ && HII->isDeallocRet(I)) || (StoreI && HII->isDeallocRet(J));
 }
 
-// SUI is the current instruction that is out side of the current packet.
+// SUI is the current instruction that is outside of the current packet.
 // SUJ is the current instruction inside the current packet against which that
 // SUI will be packetized.
 bool HexagonPacketizerList::isLegalToPacketizeTogether(SUnit *SUI, SUnit *SUJ) {


        


More information about the llvm-commits mailing list