Revert "Allow the generic specializer to specialize transparent functions."

This reverts commit r26362, because I forgot to delete one test and
update another for this change.

Swift SVN r26363
This commit is contained in:
Mark Lacey
2015-03-20 22:07:40 +00:00
parent 1c005333bc
commit 530ec9a33d

View File

@@ -102,6 +102,12 @@ void GenericSpecializer::addApplyInst(ApplyInst *AI) {
}
void GenericSpecializer::collectApplyInst(SILFunction &F) {
// Don't collect apply inst from transparent functions since we do not want to
// expose shared functions in the mandatory inliner. We will specialize the
// relevant callsites after we inline.
if (F.isTransparent())
return;
// Scan all of the instructions in this function in search of ApplyInsts.
for (auto &BB : F)
for (auto &I : BB) {