[llvm] a928b74 - [LiveVariables] Use MCRegister. NFC (#216928)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 10:06:56 PDT 2026


Author: Craig Topper
Date: 2026-08-18T17:06:51Z
New Revision: a928b74521e1967b4ca8ec2ad57221e5acf6d4f2

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

LOG: [LiveVariables] Use MCRegister. NFC (#216928)

Avoids an implicit conversion.

Added: 
    

Modified: 
    llvm/lib/CodeGen/LiveVariables.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp
index 1aab41e96dcb2..1d6168618b751 100644
--- a/llvm/lib/CodeGen/LiveVariables.cpp
+++ b/llvm/lib/CodeGen/LiveVariables.cpp
@@ -571,7 +571,7 @@ void LiveVariables::runOnBlock(MachineBasicBlock *MBB, unsigned NumRegs) {
 
   // MachineCSE may CSE instructions which write to non-allocatable physical
   // registers across MBBs. Remember if any reserved register is liveout.
-  SmallSet<unsigned, 4> LiveOuts;
+  SmallSet<MCRegister, 4> LiveOuts;
   for (const MachineBasicBlock *SuccMBB : MBB->successors()) {
     if (SuccMBB->isEHPad())
       continue;


        


More information about the llvm-commits mailing list