aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-19 16:53:55 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-19 16:53:55 +0800
commit71b38f6cede5df1651d3d7cb945352fb84d61626 (patch)
treedb883668e9a5febba9c84bf57e858ea0392ca5fa
parent8e8c9354c029e7c2bb7b7b5e6b94c7dd57b2a020 (diff)
downloadrcc-project-71b38f6cede5df1651d3d7cb945352fb84d61626.tar.gz
rcc-project-71b38f6cede5df1651d3d7cb945352fb84d61626.tar.xz
[CodeGen] Match LLVM machine scheduler contract
-rw-r--r--backend/lib/CodeGen/MachineScheduler.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/backend/lib/CodeGen/MachineScheduler.cpp b/backend/lib/CodeGen/MachineScheduler.cpp
index 58c909d..9fffa65 100644
--- a/backend/lib/CodeGen/MachineScheduler.cpp
+++ b/backend/lib/CodeGen/MachineScheduler.cpp
@@ -33,8 +33,7 @@ namespace {
static const MachinePassContract Contract = [] {
MachinePassContract Value{
.Name = "machine-scheduler",
- .Requires = {MachineFunctionProperty::Selected, MachineFunctionProperty::NoPHIs,
- MachineFunctionProperty::TiedOpsRewritten},
+ .Requires = {},
.Sets = {},
.Clears = {},
.RequiredAnalyses = {MachineFunctionAnalysisManager::id<LiveVariablesAnalysis>()},
@@ -392,10 +391,6 @@ const MachinePassContract &MachineSchedulerPass::contract() const noexcept {
Expected<MachinePassResult> MachineSchedulerPass::run(MachineFunction &Function,
const TargetDescription &Target,
MachineFunctionAnalysisManager &Analyses) {
- if (!Function.properties().containsAll(contract().Requires)) {
- return makeUnexpected(ErrorCode::VerificationError,
- "pre-RA machine scheduler requires selected, SSA-exited MachineIR");
- }
auto Trial = cloneMachineFunction(
Function, Target,
MachineFunctionCloneOptions{.NewStableID = Function.stableID(), .NewName = std::nullopt});