mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove the transparent bit from apply instructions.
We no longer need or use it since we can always refer to the same bit on the applied function when deciding whether to inline during mandatory inlining. Resolves rdar://problem/19478366. Swift SVN r26534
This commit is contained in:
@@ -586,7 +586,6 @@ void SILSerializer::writeSILInstruction(const SILInstruction &SI) {
|
||||
SILInstApplyLayout::emitRecord(Out, ScratchRecord,
|
||||
SILAbbrCodes[SILInstApplyLayout::Code],
|
||||
2 /*Builtin*/,
|
||||
0 /*Transparent*/,
|
||||
BI->getSubstitutions().size(),
|
||||
S.addTypeRef(BI->getType().getSwiftRValueType()),
|
||||
(unsigned)BI->getType().getCategory(),
|
||||
@@ -610,7 +609,6 @@ void SILSerializer::writeSILInstruction(const SILInstruction &SI) {
|
||||
}
|
||||
SILInstApplyLayout::emitRecord(Out, ScratchRecord,
|
||||
SILAbbrCodes[SILInstApplyLayout::Code], 0/*Apply*/,
|
||||
(unsigned)AI->isTransparent(),
|
||||
AI->getSubstitutions().size(),
|
||||
S.addTypeRef(AI->getCallee().getType().getSwiftRValueType()),
|
||||
S.addTypeRef(AI->getSubstCalleeType()),
|
||||
@@ -628,7 +626,6 @@ void SILSerializer::writeSILInstruction(const SILInstruction &SI) {
|
||||
}
|
||||
SILInstApplyLayout::emitRecord(Out, ScratchRecord,
|
||||
SILAbbrCodes[SILInstApplyLayout::Code], 1/*PartialApply*/,
|
||||
0 /*IsTransparent*/,
|
||||
PAI->getSubstitutions().size(),
|
||||
S.addTypeRef(PAI->getCallee().getType().getSwiftRValueType()),
|
||||
S.addTypeRef(PAI->getSubstCalleeType()),
|
||||
|
||||
Reference in New Issue
Block a user