diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-19 17:29:12 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-19 17:29:12 +0800 |
| commit | 9e52c93dca389e5d0b6ffbb1f30cab359d11d1ff (patch) | |
| tree | 259bcccbee80861fd06427e7854f10a55ca490a8 /backend/lib | |
| parent | 5c5a71428a93fb225f0057790f41697fe2a0df92 (diff) | |
| download | rcc-project-9e52c93dca389e5d0b6ffbb1f30cab359d11d1ff.tar.gz rcc-project-9e52c93dca389e5d0b6ffbb1f30cab359d11d1ff.tar.xz | |
[CodeGen] Match LLVM post-RA pseudo expansion contract
Diffstat (limited to 'backend/lib')
| -rw-r--r-- | backend/lib/CodeGen/MachinePseudoExpansion.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/backend/lib/CodeGen/MachinePseudoExpansion.cpp b/backend/lib/CodeGen/MachinePseudoExpansion.cpp index e81168c..6764580 100644 --- a/backend/lib/CodeGen/MachinePseudoExpansion.cpp +++ b/backend/lib/CodeGen/MachinePseudoExpansion.cpp @@ -155,10 +155,7 @@ using BlockSizeSnapshot = std::vector<std::pair<MachineBlockStableID, std::uint6 static const MachinePassContract PostRA = [] { MachinePassContract Value{ .Name = "postrapseudos", - .Requires = {MachineFunctionProperty::Selected, MachineFunctionProperty::NoPHIs, - MachineFunctionProperty::NoVRegs, MachineFunctionProperty::TracksLiveness, - MachineFunctionProperty::FrameFinalized, - MachineFunctionProperty::NoFrameIndices}, + .Requires = {}, .Sets = {}, .Clears = {}, .RequiredAnalyses = {}, @@ -437,9 +434,6 @@ const MachinePassContract &ExpandPostRAPseudosPass::contract() const noexcept { Expected<MachinePassResult> ExpandPostRAPseudosPass::run(MachineFunction &Function, const TargetDescription &Target, MachineFunctionAnalysisManager &Analyses) { - if (!Function.properties().containsAll(contract().Requires)) - return makeUnexpected(ErrorCode::VerificationError, - "post-RA pseudo expansion requires finalized frame and liveness"); return runExpansionTransaction(Function, Target, *Info, MachinePseudoExpansionPhase::PostRA, nullptr, Analyses); } |
