[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

@@ -569,7 +569,6 @@ RuntimeEffect swift::getRuntimeEffect(SILInstruction *inst, SILType &impactType)
//return RuntimeEffect::NoEffect;
}
case SILInstructionKind::UnconditionalCheckedCastValueInst:
case SILInstructionKind::UnconditionalCheckedCastInst:
impactType = inst->getOperand(0)->getType();
return RuntimeEffect::Casting | metadataEffect(impactType) |
@@ -584,10 +583,6 @@ RuntimeEffect swift::getRuntimeEffect(SILInstruction *inst, SILType &impactType)
impactType = inst->getOperand(0)->getType();
return RuntimeEffect::Casting | metadataEffect(impactType) |
metadataEffect(cast<CheckedCastBranchInst>(inst)->getTargetLoweredType());
case SILInstructionKind::CheckedCastValueBranchInst:
impactType = inst->getOperand(0)->getType();
return RuntimeEffect::Casting | metadataEffect(impactType) |
metadataEffect(cast<CheckedCastValueBranchInst>(inst)->getTargetLoweredType());
case SILInstructionKind::AllocStackInst:
case SILInstructionKind::ProjectBoxInst: