diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-19 17:34:09 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-19 17:34:09 +0800 |
| commit | b1e89e3948dba01baf86e3518c6bdd3efff08ce5 (patch) | |
| tree | d567a2bfea6a6c7b57cf9d1d27d85ff6dbfaecaf /backend/lib/CodeGen/PostRAScheduler.cpp | |
| parent | 9e52c93dca389e5d0b6ffbb1f30cab359d11d1ff (diff) | |
| download | rcc-project-b1e89e3948dba01baf86e3518c6bdd3efff08ce5.tar.gz rcc-project-b1e89e3948dba01baf86e3518c6bdd3efff08ce5.tar.xz | |
[CodeGen] Match LLVM post-machine scheduler contract
Diffstat (limited to 'backend/lib/CodeGen/PostRAScheduler.cpp')
| -rw-r--r-- | backend/lib/CodeGen/PostRAScheduler.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/backend/lib/CodeGen/PostRAScheduler.cpp b/backend/lib/CodeGen/PostRAScheduler.cpp index fede8df..d2feb92 100644 --- a/backend/lib/CodeGen/PostRAScheduler.cpp +++ b/backend/lib/CodeGen/PostRAScheduler.cpp @@ -32,9 +32,7 @@ namespace { static const MachinePassContract Contract = [] { MachinePassContract Value{ .Name = "postmisched", - .Requires = {MachineFunctionProperty::Selected, MachineFunctionProperty::NoPHIs, - MachineFunctionProperty::TiedOpsRewritten, MachineFunctionProperty::NoVRegs, - MachineFunctionProperty::TracksLiveness}, + .Requires = {}, .Sets = {}, .Clears = {}, .RequiredAnalyses = {MachineFunctionAnalysisManager::id<LiveVariablesAnalysis>()}, @@ -58,10 +56,6 @@ const MachinePassContract &PostRASchedulerPass::contract() const noexcept { Expected<MachinePassResult> PostRASchedulerPass::run(MachineFunction &Function, const TargetDescription &Target, MachineFunctionAnalysisManager &Analyses) { - if (!Function.properties().containsAll(contract().Requires)) { - return makeUnexpected(ErrorCode::VerificationError, - "post-RA scheduler requires allocated tracked-liveness MachineIR"); - } auto Trial = cloneMachineFunction( Function, Target, MachineFunctionCloneOptions{.NewStableID = Function.stableID(), .NewName = std::nullopt}); |
