diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-19 16:59:28 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-19 16:59:28 +0800 |
| commit | f6a61816e9d8cd51865f3621265eebdd89229af4 (patch) | |
| tree | a061e5892c5554e8c2c0fd49c02a868944b78a25 | |
| parent | a1e1c2d0812cd15c16cfc723bb82327e1cc25538 (diff) | |
| download | rcc-project-f6a61816e9d8cd51865f3621265eebdd89229af4.tar.gz rcc-project-f6a61816e9d8cd51865f3621265eebdd89229af4.tar.xz | |
[CodeGen] Match LLVM stack slot coloring contract
| -rw-r--r-- | backend/lib/CodeGen/MachineStackSlotColoring.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/backend/lib/CodeGen/MachineStackSlotColoring.cpp b/backend/lib/CodeGen/MachineStackSlotColoring.cpp index 7a65eb3..eec2747 100644 --- a/backend/lib/CodeGen/MachineStackSlotColoring.cpp +++ b/backend/lib/CodeGen/MachineStackSlotColoring.cpp @@ -27,8 +27,7 @@ namespace { static const MachinePassContract Contract = [] { MachinePassContract Value{ .Name = "machine-stack-slot-coloring", - .Requires = {MachineFunctionProperty::Selected, MachineFunctionProperty::NoPHIs, - MachineFunctionProperty::TiedOpsRewritten, MachineFunctionProperty::NoVRegs}, + .Requires = {}, .Sets = {}, .Clears = {}, .RequiredAnalyses = {}, @@ -224,10 +223,6 @@ const MachinePassContract &MachineStackSlotColoringPass::contract() const noexce Expected<MachinePassResult> MachineStackSlotColoringPass::run(MachineFunction &Function, const TargetDescription &Target, MachineFunctionAnalysisManager &) { - if (!Function.properties().containsAll(contract().Requires)) { - return makeUnexpected(ErrorCode::VerificationError, - "stack-slot coloring requires allocated PHI-free MachineIR"); - } if (Function.frameInfo().isFrozen()) { return makeUnexpected(ErrorCode::FrameLayoutFailed, "stack-slot coloring must run before frame layout is frozen"); |
