aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-26 23:28:39 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-26 23:28:39 +0800
commita72a7a4323fb6eef8e15cc2f1229bcca14879e94 (patch)
tree5768e6cd3ad0a025128d9bf7f76a8ee7afe22c12 /backend/lib/CodeGen/MachineSink.cpp
parent7b3dcced70be227bb43e71d84d11a2f15fb25072 (diff)
downloadrcc-project-a72a7a4323fb6eef8e15cc2f1229bcca14879e94.tar.gz
rcc-project-a72a7a4323fb6eef8e15cc2f1229bcca14879e94.tar.xz
[CodeGen] Centralize machine pass property validation
Diffstat (limited to 'backend/lib/CodeGen/MachineSink.cpp')
-rw-r--r--backend/lib/CodeGen/MachineSink.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/backend/lib/CodeGen/MachineSink.cpp b/backend/lib/CodeGen/MachineSink.cpp
index 7840115..1c2d2b7 100644
--- a/backend/lib/CodeGen/MachineSink.cpp
+++ b/backend/lib/CodeGen/MachineSink.cpp
@@ -343,13 +343,6 @@ const MachinePassContract &MachineSinkPass::contract() const noexcept {
Expected<MachinePassResult> MachineSinkPass::run(MachineFunction &Function,
const TargetDescription &Target,
MachineFunctionAnalysisManager &Analyses) {
- if (!Function.properties().containsAll(contract().Requires)) {
- return makeUnexpected(
- ErrorCode::VerificationError,
- Stage == MachineCodeMotionStage::SelectedSSA
- ? "machine sink requires SSA MachineIR"
- : "post-RA machine sink requires allocated tracked-liveness MachineIR");
- }
auto Trial = cloneMachineFunction(
Function, Target,
MachineFunctionCloneOptions{.NewStableID = Function.stableID(), .NewName = std::nullopt});