@@ -1837,28 +1837,6 @@ void EscapeAnalysis::analyzeInstruction(SILInstruction *I,
1837
1837
ConGraph->setNode (TEI, ArrayElements);
1838
1838
return ;
1839
1839
}
1840
- case SILInstructionKind::UncheckedRefCastInst:
1841
- case SILInstructionKind::ConvertFunctionInst:
1842
- case SILInstructionKind::UpcastInst:
1843
- case SILInstructionKind::InitExistentialRefInst:
1844
- case SILInstructionKind::OpenExistentialRefInst:
1845
- case SILInstructionKind::RawPointerToRefInst:
1846
- case SILInstructionKind::RefToRawPointerInst:
1847
- case SILInstructionKind::RefToBridgeObjectInst:
1848
- case SILInstructionKind::BridgeObjectToRefInst:
1849
- case SILInstructionKind::UncheckedAddrCastInst:
1850
- case SILInstructionKind::UnconditionalCheckedCastInst:
1851
- // DO NOT use LOADABLE_REF_STORAGE because unchecked references don't have
1852
- // retain/release instructions that trigger the 'default' case.
1853
- #define ALWAYS_OR_SOMETIMES_LOADABLE_CHECKED_REF_STORAGE (Name, ...) \
1854
- case SILInstructionKind::RefTo##Name##Inst: \
1855
- case SILInstructionKind::Name##ToRefInst:
1856
- #include " swift/AST/ReferenceStorage.def"
1857
- // A cast is almost like a projection.
1858
- if (CGNode *OpNode = ConGraph->getNode (I->getOperand (0 ))) {
1859
- ConGraph->setNode (cast<SingleValueInstruction>(I), OpNode);
1860
- }
1861
- break ;
1862
1840
case SILInstructionKind::UncheckedRefCastAddrInst: {
1863
1841
auto *URCAI = cast<UncheckedRefCastAddrInst>(I);
1864
1842
CGNode *SrcNode = ConGraph->getNode (URCAI->getSrc ());
0 commit comments