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:
Mark Lacey
2015-03-25 08:36:34 +00:00
parent 52a332b2bd
commit 1f23ff27bb
73 changed files with 199 additions and 241 deletions

View File

@@ -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()),