mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: remove the unused alloc_value_buffer, project_value_buffer and dealloc_value_buffer instructions.
Those instructions were use for the materializeForSet implementation, which was replaced by modify-coroutines.
This commit is contained in:
@@ -939,13 +939,6 @@ void SILSerializer::writeSILInstruction(const SILInstruction &SI) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SILInstructionKind::DeallocValueBufferInst: {
|
||||
auto DVBI = cast<DeallocValueBufferInst>(&SI);
|
||||
writeOneTypeOneOperandLayout(DVBI->getKind(), 0,
|
||||
DVBI->getValueType(),
|
||||
DVBI->getOperand());
|
||||
break;
|
||||
}
|
||||
case SILInstructionKind::DeallocBoxInst: {
|
||||
auto DBI = cast<DeallocBoxInst>(&SI);
|
||||
writeOneTypeOneOperandLayout(DBI->getKind(), 0,
|
||||
@@ -974,13 +967,6 @@ void SILSerializer::writeSILInstruction(const SILInstruction &SI) {
|
||||
EMI->getOperand());
|
||||
break;
|
||||
}
|
||||
case SILInstructionKind::AllocValueBufferInst: {
|
||||
auto AVBI = cast<AllocValueBufferInst>(&SI);
|
||||
writeOneTypeOneOperandLayout(AVBI->getKind(), 0,
|
||||
AVBI->getValueType(),
|
||||
AVBI->getOperand());
|
||||
break;
|
||||
}
|
||||
case SILInstructionKind::AllocBoxInst: {
|
||||
const AllocBoxInst *ABI = cast<AllocBoxInst>(&SI);
|
||||
writeOneTypeLayout(ABI->getKind(), ABI->hasDynamicLifetime() ? 1 : 0,
|
||||
@@ -1026,13 +1012,6 @@ void SILSerializer::writeSILInstruction(const SILInstruction &SI) {
|
||||
writeOneTypeLayout(ASI->getKind(), attr, ASI->getElementType());
|
||||
break;
|
||||
}
|
||||
case SILInstructionKind::ProjectValueBufferInst: {
|
||||
auto PVBI = cast<ProjectValueBufferInst>(&SI);
|
||||
writeOneTypeOneOperandLayout(PVBI->getKind(), 0,
|
||||
PVBI->getType(),
|
||||
PVBI->getOperand());
|
||||
break;
|
||||
}
|
||||
case SILInstructionKind::ProjectBoxInst: {
|
||||
auto PBI = cast<ProjectBoxInst>(&SI);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user