From b1e89e3948dba01baf86e3518c6bdd3efff08ce5 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Wed, 19 Aug 2026 17:34:09 +0800 Subject: [CodeGen] Match LLVM post-machine scheduler contract --- backend/lib/CodeGen/PostRAScheduler.cpp | 8 +------- 1 file changed, 1 insertion(+), 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()}, @@ -58,10 +56,6 @@ const MachinePassContract &PostRASchedulerPass::contract() const noexcept { Expected 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}); -- cgit v1.2.3