diff options
| author | Craig Topper <craig.topper@sifive.com> | 2025-03-04 12:26:28 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-04 12:26:28 -0800 |
| commit | 6ca2a9f2df281354b74bdd80b1600140243d9220 (patch) | |
| tree | 187e8220027b7edb441bda8df01317d2e824e1f7 /llvm/lib/CodeGen | |
| parent | 423862f3d53a27aafa449cc8eb639ad29390083f (diff) | |
[CodeGen] Use Register in SDep interface. NFC (#129734)
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp b/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp index 73200e705f21..72bcd5874ff8 100644 --- a/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp +++ b/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp @@ -829,7 +829,7 @@ unsigned AggressiveAntiDepBreaker::BreakAntiDependencies( if ((Edge->getKind() != SDep::Anti) && (Edge->getKind() != SDep::Output)) continue; - MCRegister AntiDepReg = MCRegister::from(Edge->getReg()); + MCRegister AntiDepReg = Edge->getReg().asMCReg(); LLVM_DEBUG(dbgs() << "\tAntidep reg: " << printReg(AntiDepReg, TRI)); assert(AntiDepReg && "Anti-dependence on reg0?"); diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index 2a790a2c7c16..0eecceea3dd1 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -3968,8 +3968,7 @@ void GenericScheduler::reschedulePhysReg(SUnit *SU, bool isTop) { // Find already scheduled copies with a single physreg dependence and move // them just above the scheduled instruction. for (SDep &Dep : Deps) { - if (Dep.getKind() != SDep::Data || - !Register::isPhysicalRegister(Dep.getReg())) + if (Dep.getKind() != SDep::Data || !Dep.getReg().isPhysical()) continue; SUnit *DepSU = Dep.getSUnit(); if (isTop ? DepSU->Succs.size() > 1 : DepSU->Preds.size() > 1) |
