aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-19 16:41:20 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-19 16:41:20 +0800
commit8e8c9354c029e7c2bb7b7b5e6b94c7dd57b2a020 (patch)
treec4243c12ae905cf7eefe4531dee996a87675dd00 /backend/lib/CodeGen
parent9c6595ec2cb59db9dbb656abdae1ead21c8cad65 (diff)
downloadrcc-project-8e8c9354c029e7c2bb7b7b5e6b94c7dd57b2a020.tar.gz
rcc-project-8e8c9354c029e7c2bb7b7b5e6b94c7dd57b2a020.tar.xz
[CodeGen] Match LLVM machine sink input contract
Diffstat (limited to 'backend/lib/CodeGen')
-rw-r--r--backend/lib/CodeGen/MachineSink.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/lib/CodeGen/MachineSink.cpp b/backend/lib/CodeGen/MachineSink.cpp
index 95f902d..bfe7cc9 100644
--- a/backend/lib/CodeGen/MachineSink.cpp
+++ b/backend/lib/CodeGen/MachineSink.cpp
@@ -31,7 +31,7 @@ namespace {
static const MachinePassContract Selected = [] {
MachinePassContract Value{
.Name = "machine-sink",
- .Requires = {MachineFunctionProperty::IsSSA, MachineFunctionProperty::Selected},
+ .Requires = {MachineFunctionProperty::IsSSA},
.Sets = {},
.Clears = {},
.RequiredAnalyses = {MachineFunctionAnalysisManager::id<MachineDominatorTreeAnalysis>(),
@@ -349,7 +349,7 @@ Expected<MachinePassResult> MachineSinkPass::run(MachineFunction &Function,
return makeUnexpected(
ErrorCode::VerificationError,
Stage == MachineCodeMotionStage::SelectedSSA
- ? "machine sink requires selected SSA MachineIR"
+ ? "machine sink requires SSA MachineIR"
: "post-RA machine sink requires allocated tracked-liveness MachineIR");
}
auto Trial = cloneMachineFunction(