[SIL-opaque] Removed [Unconditional]CheckedCastValue

This commit is contained in:
Andrew Trick
2022-03-05 17:45:02 -08:00
parent 1c07c50cf8
commit 2fd4de411e
45 changed files with 24 additions and 788 deletions

View File

@@ -759,7 +759,6 @@ bool swift::isIdentityAndOwnershipPreservingRefCast(
case SILInstructionKind::BridgeObjectToRefInst:
return true;
case SILInstructionKind::UnconditionalCheckedCastInst:
case SILInstructionKind::UnconditionalCheckedCastValueInst:
return SILDynamicCastInst(svi).isRCIdentityPreserving();
// Ignore markers
case SILInstructionKind::MarkUninitializedInst:
@@ -2620,7 +2619,6 @@ void swift::visitAccessedAddress(SILInstruction *I,
case SILInstructionKind::BeginUnpairedAccessInst:
case SILInstructionKind::BindMemoryInst:
case SILInstructionKind::RebindMemoryInst:
case SILInstructionKind::CheckedCastValueBranchInst:
case SILInstructionKind::CondFailInst:
case SILInstructionKind::CopyBlockInst:
case SILInstructionKind::CopyBlockWithoutEscapingInst:
@@ -2652,7 +2650,6 @@ void swift::visitAccessedAddress(SILInstruction *I,
case SILInstructionKind::UncheckedOwnershipConversionInst:
case SILInstructionKind::UncheckedRefCastAddrInst:
case SILInstructionKind::UnconditionalCheckedCastAddrInst:
case SILInstructionKind::UnconditionalCheckedCastValueInst:
case SILInstructionKind::ValueMetatypeInst:
// TODO: Is this correct?
case SILInstructionKind::GetAsyncContinuationInst: