diff options
author | paperchalice <liujunchang97@outlook.com> | 2024-07-09 12:09:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-09 12:09:11 +0800 |
commit | 4010f894a1e880f88bda78a49a8bece5affaa848 (patch) | |
tree | 83f51560dea01462d67f68c9c4ff30045e69b891 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 87d58ab22af0627b2c90138713c19b5263b6c132 (diff) | |
download | llvm-4010f894a1e880f88bda78a49a8bece5affaa848.zip llvm-4010f894a1e880f88bda78a49a8bece5affaa848.tar.gz llvm-4010f894a1e880f88bda78a49a8bece5affaa848.tar.bz2 |
[CodeGen][NewPM] Port `SlotIndexes` to new pass manager (#97941)
- Add `SlotIndexesAnalysis`.
- Add `SlotIndexesPrinterPass`.
- Use `SlotIndexesWrapperPass` in legacy pass.
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index 84ba703..50eac1a 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -268,7 +268,7 @@ INITIALIZE_PASS_BEGIN(MachineScheduler, DEBUG_TYPE, INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass) INITIALIZE_PASS_DEPENDENCY(MachineDominatorTreeWrapperPass) INITIALIZE_PASS_DEPENDENCY(MachineLoopInfoWrapperPass) -INITIALIZE_PASS_DEPENDENCY(SlotIndexes) +INITIALIZE_PASS_DEPENDENCY(SlotIndexesWrapperPass) INITIALIZE_PASS_DEPENDENCY(LiveIntervals) INITIALIZE_PASS_END(MachineScheduler, DEBUG_TYPE, "Machine Instruction Scheduler", false, false) @@ -283,8 +283,8 @@ void MachineScheduler::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<MachineLoopInfoWrapperPass>(); AU.addRequired<AAResultsWrapperPass>(); AU.addRequired<TargetPassConfig>(); - AU.addRequired<SlotIndexes>(); - AU.addPreserved<SlotIndexes>(); + AU.addRequired<SlotIndexesWrapperPass>(); + AU.addPreserved<SlotIndexesWrapperPass>(); AU.addRequired<LiveIntervals>(); AU.addPreserved<LiveIntervals>(); MachineFunctionPass::getAnalysisUsage(AU); |