[llvm] 0e54667 - [CodeGen] Use MCRegister in MachineBasicBlock::liveout_iterator. NFC (#168834)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 20 07:09:05 PST 2025


Author: Craig Topper
Date: 2025-11-20T07:09:00-08:00
New Revision: 0e5466767268096bd7d03c50810f2d4c0b37a598

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

LOG: [CodeGen] Use MCRegister in MachineBasicBlock::liveout_iterator. NFC (#168834)

MachineBasicBlock::liveout_begin() calls this constructor with
MCRegisters so this removes an implicit cast.

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/MachineBasicBlock.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/MachineBasicBlock.h b/llvm/include/llvm/CodeGen/MachineBasicBlock.h
index fcf7bab09fcff..a1023d4c32ce4 100644
--- a/llvm/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/llvm/include/llvm/CodeGen/MachineBasicBlock.h
@@ -547,8 +547,8 @@ class MachineBasicBlock
     using pointer = const RegisterMaskPair *;
     using reference = const RegisterMaskPair &;
 
-    liveout_iterator(const MachineBasicBlock &MBB, MCPhysReg ExceptionPointer,
-                     MCPhysReg ExceptionSelector, bool End)
+    liveout_iterator(const MachineBasicBlock &MBB, MCRegister ExceptionPointer,
+                     MCRegister ExceptionSelector, bool End)
         : ExceptionPointer(ExceptionPointer),
           ExceptionSelector(ExceptionSelector), BlockI(MBB.succ_begin()),
           BlockEnd(MBB.succ_end()) {
@@ -613,7 +613,7 @@ class MachineBasicBlock
       return true;
     }
 
-    MCPhysReg ExceptionPointer, ExceptionSelector;
+    MCRegister ExceptionPointer, ExceptionSelector;
     const_succ_iterator BlockI;
     const_succ_iterator BlockEnd;
     livein_iterator LiveRegI;


        


More information about the llvm-commits mailing list