From a72a7a4323fb6eef8e15cc2f1229bcca14879e94 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Wed, 26 Aug 2026 23:28:39 +0800 Subject: [CodeGen] Centralize machine pass property validation --- backend/lib/CodeGen/RegAllocInternal.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'backend/lib/CodeGen/RegAllocInternal.h') diff --git a/backend/lib/CodeGen/RegAllocInternal.h b/backend/lib/CodeGen/RegAllocInternal.h index 52840cf..3da6387 100644 --- a/backend/lib/CodeGen/RegAllocInternal.h +++ b/backend/lib/CodeGen/RegAllocInternal.h @@ -222,16 +222,6 @@ reserveFunctionRegisters(MachineFunction &Function, std::span -requireAllocationProperties(const MachineFunction &Function, const MachinePassContract &Contract) { - const MachineFunctionProperties Missing = Contract.Requires.missingFrom(Function.properties()); - if (!Missing.empty()) { - return makeUnexpected(ErrorCode::VerificationError, - Contract.Name + " requires properties: " + Missing.toString()); - } - return {}; -} - [[nodiscard]] inline Expected verifyAllocationTrial(MachineFunction &Function, const TargetDescription &Target, const MachinePassContract &Contract) { -- cgit v1.2.3