diff options
| author | Christudasan Devadasan <christudasan.devadasan@amd.com> | 2025-02-05 11:41:37 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-05 11:41:37 +0530 |
| commit | a47c35a699ae29e63cfdffd3679639125219d175 (patch) | |
| tree | e785b4dc149e8f16f5ebe296ab05c2d27f4d34c7 /llvm/lib/CodeGen/MachinePipeliner.cpp | |
| parent | b85e71b9f2a961fd54777b5aef43b75d8a836214 (diff) | |
[CodeGen] Move MISched target hooks into TargetMachine (#125700)
The createSIMachineScheduler & createPostMachineScheduler
target hooks are currently placed in the PassConfig interface.
Moving it out to TargetMachine so that both legacy and
the new pass manager can effectively use them.
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachinePipeliner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index 0d5dc9615900..dbf320f88fd6 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -511,7 +511,7 @@ bool MachinePipeliner::runWindowScheduler(MachineLoop &L) { Context.MF = MF; Context.MLI = MLI; Context.MDT = MDT; - Context.PassConfig = &getAnalysis<TargetPassConfig>(); + Context.TM = &getAnalysis<TargetPassConfig>().getTM<TargetMachine>(); Context.AA = &getAnalysis<AAResultsWrapperPass>().getAAResults(); Context.LIS = &getAnalysis<LiveIntervalsWrapperPass>().getLIS(); Context.RegClassInfo->runOnMachineFunction(*MF); |
