[llvm] 6c66cda - [AntiDepBreaker] Use MCRegister. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 15 00:29:07 PDT 2025


Author: Craig Topper
Date: 2025-03-15T00:29:01-07:00
New Revision: 6c66cda40d7c9622e08a986411d47638abbead59

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

LOG: [AntiDepBreaker] Use MCRegister. NFC

This matches the type passed by AggresssiveAntiDepBreaker and
CriticalAntiDepBreaker.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/AntiDepBreaker.h b/llvm/include/llvm/CodeGen/AntiDepBreaker.h
index eba642684c95c..d8977eec556b4 100644
--- a/llvm/include/llvm/CodeGen/AntiDepBreaker.h
+++ b/llvm/include/llvm/CodeGen/AntiDepBreaker.h
@@ -56,7 +56,7 @@ class AntiDepBreaker {
 
   /// Update DBG_VALUE or DBG_PHI if dependency breaker is updating
   /// other machine instruction to use NewReg.
-  void UpdateDbgValue(MachineInstr &MI, unsigned OldReg, unsigned NewReg) {
+  void UpdateDbgValue(MachineInstr &MI, MCRegister OldReg, MCRegister NewReg) {
     if (MI.isDebugValue()) {
       if (MI.getDebugOperand(0).isReg() &&
           MI.getDebugOperand(0).getReg() == OldReg)
@@ -73,7 +73,7 @@ class AntiDepBreaker {
   /// Update all DBG_VALUE instructions that may be affected by the dependency
   /// breaker's update of ParentMI to use NewReg.
   void UpdateDbgValues(const DbgValueVector &DbgValues, MachineInstr *ParentMI,
-                       unsigned OldReg, unsigned NewReg) {
+                       MCRegister OldReg, MCRegister NewReg) {
     // The following code is dependent on the order in which the DbgValues are
     // constructed in ScheduleDAGInstrs::buildSchedGraph.
     MachineInstr *PrevDbgMI = nullptr;


        


More information about the llvm-commits mailing list