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:
Erik Eckstein
2021-10-06 16:26:01 +02:00
parent daa335c42f
commit 7849f09e52
32 changed files with 9 additions and 477 deletions

View File

@@ -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);