aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen/MachineLiveness.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/lib/CodeGen/MachineLiveness.cpp')
-rw-r--r--backend/lib/CodeGen/MachineLiveness.cpp4
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) {