diff options
author | Akshat Oke <Akshat.Oke@amd.com> | 2024-10-22 15:28:04 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 15:28:04 +0530 |
commit | 4e32d7236b27affa5ae795d194e89d183b623f41 (patch) | |
tree | 25f0f8564f4814bec84677ad8f1a9d39bf48ea77 /llvm/lib/CodeGen/RegAllocBasic.cpp | |
parent | 75ec65e384d73d97bab2f1a4e273df4b622af4c4 (diff) | |
download | llvm-4e32d7236b27affa5ae795d194e89d183b623f41.zip llvm-4e32d7236b27affa5ae795d194e89d183b623f41.tar.gz llvm-4e32d7236b27affa5ae795d194e89d183b623f41.tar.bz2 |
[NewPM][CodeGen] Port LiveRegMatrix to NPM (#109938)
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBasic.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocBasic.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBasic.cpp b/llvm/lib/CodeGen/RegAllocBasic.cpp index 07d7e21..55d806e7 100644 --- a/llvm/lib/CodeGen/RegAllocBasic.cpp +++ b/llvm/lib/CodeGen/RegAllocBasic.cpp @@ -140,7 +140,7 @@ INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass) INITIALIZE_PASS_DEPENDENCY(MachineDominatorTreeWrapperPass) INITIALIZE_PASS_DEPENDENCY(MachineLoopInfoWrapperPass) INITIALIZE_PASS_DEPENDENCY(VirtRegMapWrapperLegacy) -INITIALIZE_PASS_DEPENDENCY(LiveRegMatrix) +INITIALIZE_PASS_DEPENDENCY(LiveRegMatrixWrapperLegacy) INITIALIZE_PASS_DEPENDENCY(ProfileSummaryInfoWrapperPass) INITIALIZE_PASS_END(RABasic, "regallocbasic", "Basic Register Allocator", false, false) @@ -193,8 +193,8 @@ void RABasic::getAnalysisUsage(AnalysisUsage &AU) const { AU.addPreserved<MachineLoopInfoWrapperPass>(); AU.addRequired<VirtRegMapWrapperLegacy>(); AU.addPreserved<VirtRegMapWrapperLegacy>(); - AU.addRequired<LiveRegMatrix>(); - AU.addPreserved<LiveRegMatrix>(); + AU.addRequired<LiveRegMatrixWrapperLegacy>(); + AU.addPreserved<LiveRegMatrixWrapperLegacy>(); MachineFunctionPass::getAnalysisUsage(AU); } @@ -312,7 +312,7 @@ bool RABasic::runOnMachineFunction(MachineFunction &mf) { MF = &mf; RegAllocBase::init(getAnalysis<VirtRegMapWrapperLegacy>().getVRM(), getAnalysis<LiveIntervalsWrapperPass>().getLIS(), - getAnalysis<LiveRegMatrix>()); + getAnalysis<LiveRegMatrixWrapperLegacy>().getLRM()); VirtRegAuxInfo VRAI( *MF, *LIS, *VRM, getAnalysis<MachineLoopInfoWrapperPass>().getLI(), getAnalysis<MachineBlockFrequencyInfoWrapperPass>().getMBFI(), |