Skip to content

Commit 6c66cda

Browse files
committed
[AntiDepBreaker] Use MCRegister. NFC
This matches the type passed by AggresssiveAntiDepBreaker and CriticalAntiDepBreaker.
1 parent 7207300 commit 6c66cda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/CodeGen/AntiDepBreaker.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class AntiDepBreaker {
5656

5757
/// Update DBG_VALUE or DBG_PHI if dependency breaker is updating
5858
/// other machine instruction to use NewReg.
59-
void UpdateDbgValue(MachineInstr &MI, unsigned OldReg, unsigned NewReg) {
59+
void UpdateDbgValue(MachineInstr &MI, MCRegister OldReg, MCRegister NewReg) {
6060
if (MI.isDebugValue()) {
6161
if (MI.getDebugOperand(0).isReg() &&
6262
MI.getDebugOperand(0).getReg() == OldReg)
@@ -73,7 +73,7 @@ class AntiDepBreaker {
7373
/// Update all DBG_VALUE instructions that may be affected by the dependency
7474
/// breaker's update of ParentMI to use NewReg.
7575
void UpdateDbgValues(const DbgValueVector &DbgValues, MachineInstr *ParentMI,
76-
unsigned OldReg, unsigned NewReg) {
76+
MCRegister OldReg, MCRegister NewReg) {
7777
// The following code is dependent on the order in which the DbgValues are
7878
// constructed in ScheduleDAGInstrs::buildSchedGraph.
7979
MachineInstr *PrevDbgMI = nullptr;

0 commit comments

Comments
 (0)