From e7586a115e9ff6ee303c2546cb0eab48bde6dfbb Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Tue, 11 Aug 2026 23:51:07 +0800 Subject: [CodeGen] Accept conservative physical live-ins --- backend/lib/CodeGen/MachineLiveness.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/lib/CodeGen/MachineLiveness.cpp') 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 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) { -- cgit v1.2.3