diff options
| author | paperchalice <liujunchang97@outlook.com> | 2024-07-10 19:34:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-10 19:34:48 +0800 |
| commit | abde52aa667118d18e9551ab87a15b95c267b3b6 (patch) | |
| tree | 1bcef533428ab18c5add00ba7ed5c0d4e82d2e95 /llvm/lib/CodeGen/InlineSpiller.cpp | |
| parent | 3e06392c7db0eacfca94a176d430d9988b3ffbd6 (diff) | |
[CodeGen][NewPM] Port `LiveIntervals` to new pass manager (#98118)
- Add `LiveIntervalsAnalysis`.
- Add `LiveIntervalsPrinterPass`.
- Use `LiveIntervalsWrapperPass` in legacy pass manager.
- Use `std::unique_ptr` instead of raw pointer for `LICalc`, so
destructor and default move constructor can handle it correctly.
This would be the last analysis required by `PHIElimination`.
Diffstat (limited to 'llvm/lib/CodeGen/InlineSpiller.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/InlineSpiller.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp index dc03f590ded3..6abbf8b6d7e0 100644 --- a/llvm/lib/CodeGen/InlineSpiller.cpp +++ b/llvm/lib/CodeGen/InlineSpiller.cpp @@ -131,7 +131,7 @@ class HoistSpillHelper : private LiveRangeEdit::Delegate { public: HoistSpillHelper(MachineFunctionPass &pass, MachineFunction &mf, VirtRegMap &vrm) - : MF(mf), LIS(pass.getAnalysis<LiveIntervals>()), + : MF(mf), LIS(pass.getAnalysis<LiveIntervalsWrapperPass>().getLIS()), LSS(pass.getAnalysis<LiveStacks>()), MDT(pass.getAnalysis<MachineDominatorTreeWrapperPass>().getDomTree()), VRM(vrm), MRI(mf.getRegInfo()), TII(*mf.getSubtarget().getInstrInfo()), @@ -188,7 +188,7 @@ class InlineSpiller : public Spiller { public: InlineSpiller(MachineFunctionPass &Pass, MachineFunction &MF, VirtRegMap &VRM, VirtRegAuxInfo &VRAI) - : MF(MF), LIS(Pass.getAnalysis<LiveIntervals>()), + : MF(MF), LIS(Pass.getAnalysis<LiveIntervalsWrapperPass>().getLIS()), LSS(Pass.getAnalysis<LiveStacks>()), MDT(Pass.getAnalysis<MachineDominatorTreeWrapperPass>().getDomTree()), VRM(VRM), MRI(MF.getRegInfo()), TII(*MF.getSubtarget().getInstrInfo()), |
