diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 23:51:07 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 23:51:07 +0800 |
| commit | e7586a115e9ff6ee303c2546cb0eab48bde6dfbb (patch) | |
| tree | ec283748737f62542f82079c1a10fc07bec8cc2d /backend/lib/CodeGen | |
| parent | e6cd1347cc2c76babe56842e1b7bd05d68fe9584 (diff) | |
| download | rcc-project-e7586a115e9ff6ee303c2546cb0eab48bde6dfbb.tar.gz rcc-project-e7586a115e9ff6ee303c2546cb0eab48bde6dfbb.tar.xz | |
[CodeGen] Accept conservative physical live-ins
Diffstat (limited to 'backend/lib/CodeGen')
| -rw-r--r-- | backend/lib/CodeGen/MachineLiveness.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/lib/CodeGen/MachineLiveness.cpp b/backend/lib/CodeGen/MachineLiveness.cpp index 327ae7d..9ed09cc 100644 --- a/backend/lib/CodeGen/MachineLiveness.cpp +++ b/backend/lib/CodeGen/MachineLiveness.cpp @@ -1789,9 +1789,9 @@ Expected<void> verifyTrackedMachineLiveness(const MachineFunction &Function, auto Expected = liveInUnits(BlockPlan.RebuiltLiveIns, Target); if (!Expected) return std::unexpected(Expected.error()); - if (*Actual != *Expected) { + if (!isSubset(*Expected, *Actual)) { return makeUnexpected(ErrorCode::VerificationError, - "TracksLiveness block has stale physical live-ins"); + "TracksLiveness block is missing required physical live-ins"); } } for (const OperandFlagPlan &OperandPlan : Plan->Operands) { |
