[llvm] 920b2e6 - DeadMachineInstructionElim: Fix typo

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 12 17:11:00 PDT 2022


Author: Matt Arsenault
Date: 2022-09-12T20:10:33-04:00
New Revision: 920b2e65fced20f36ab7e3946d3ba2c75d48cbf0

URL: https://github.com/llvm/llvm-project/commit/920b2e65fced20f36ab7e3946d3ba2c75d48cbf0
DIFF: https://github.com/llvm/llvm-project/commit/920b2e65fced20f36ab7e3946d3ba2c75d48cbf0.diff

LOG: DeadMachineInstructionElim: Fix typo

Added: 
    

Modified: 
    llvm/lib/CodeGen/DeadMachineInstructionElim.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp b/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
index 021744d1e9a3..d507ad857cc4 100644
--- a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
+++ b/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
@@ -85,8 +85,7 @@ bool DeadMachineInstructionElim::isDead(const MachineInstr *MI) const {
       } else {
         if (MO.isDead()) {
 #ifndef NDEBUG
-          // Baisc check on the register. All of them should be
-          // 'undef'.
+          // Basic check on the register. All of them should be 'undef'.
           for (auto &U : MRI->use_nodbg_operands(Reg))
             assert(U.isUndef() && "'Undef' use on a 'dead' register is found!");
 #endif


        


More information about the llvm-commits mailing list