[llvm] 0bd66c4 - [RegAllocGreedy] Remove unnecessary conversion from MCRegister to Register. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 22 16:20:39 PST 2025


Author: Craig Topper
Date: 2025-02-22T16:20:19-08:00
New Revision: 0bd66c4194d0f30bd07bca35127686f5946256e4

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

LOG: [RegAllocGreedy] Remove unnecessary conversion from MCRegister to Register. NFC

Added: 
    

Modified: 
    llvm/lib/CodeGen/RegAllocGreedy.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index a9481c70ec242..f1e734dd2f933 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -2456,7 +2456,7 @@ MCRegister RAGreedy::selectOrSplitImpl(const LiveInterval &VirtReg,
   // queue. The RS_Split ranges already failed to do this, and they should not
   // get a second chance until they have been split.
   if (Stage != RS_Split)
-    if (Register PhysReg =
+    if (MCRegister PhysReg =
             tryEvict(VirtReg, Order, NewVRegs, CostPerUseLimit,
                      FixedRegisters)) {
       Register Hint = MRI->getSimpleHint(VirtReg.reg());


        


More information about the llvm-commits mailing list