summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2025-03-04 12:26:28 -0800
committerGitHub <noreply@github.com>2025-03-04 12:26:28 -0800
commit6ca2a9f2df281354b74bdd80b1600140243d9220 (patch)
tree187e8220027b7edb441bda8df01317d2e824e1f7 /llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
parent423862f3d53a27aafa449cc8eb639ad29390083f (diff)
[CodeGen] Use Register in SDep interface. NFC (#129734)
Diffstat (limited to 'llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp')
-rw-r--r--llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp2
1 files changed, 1 insertions, 1 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?");